mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-24 17:36:14 -04:00
Fix decode error if pad name contains special characters and is sanitized
This commit is contained in:
parent
a09044a6f3
commit
f6cebdad98
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue