diff options
author | Stefan <mu.stefan@googlemail.com> | 2015-10-08 20:46:15 +0200 |
---|---|---|
committer | Stefan <mu.stefan@googlemail.com> | 2015-10-08 20:46:15 +0200 |
commit | f6cebdad9813026b2909fadc4e43adcdc4d78b10 (patch) | |
tree | d7b17887b89e92d6562d451f6bb9bbcda356551d /src/node/hooks/express | |
parent | a09044a6f3fa610d23b45dbcef675ee4b6b6395b (diff) | |
download | etherpad-lite-f6cebdad9813026b2909fadc4e43adcdc4d78b10.zip |
Fix decode error if pad name contains special characters and is sanitized
Diffstat (limited to 'src/node/hooks/express')
-rw-r--r-- | src/node/hooks/express/padurlsanitize.js | 1 |
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); |