summaryrefslogtreecommitdiff
path: root/src/node/hooks
diff options
context:
space:
mode:
Diffstat (limited to 'src/node/hooks')
-rw-r--r--src/node/hooks/express/padurlsanitize.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node/hooks/express/padurlsanitize.js b/src/node/hooks/express/padurlsanitize.js
index 94cbe36a..a9972220 100644
--- a/src/node/hooks/express/padurlsanitize.js
+++ b/src/node/hooks/express/padurlsanitize.js
@@ -16,6 +16,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
if(sanitizedPadId != padId)
{
var real_url = sanitizedPadId;
+ real_url = encodeURIComponent(real_url);
var query = url.parse(req.url).query;
if ( query ) real_url += '?' + query;
res.header('Location', real_url);