Merge pull request #2799 from Gared/fix_url_location_error
Fix decode error if pad name contains special characters and is sanitizedpull/2805/head
commit
22bf9c9297
|
@ -16,6 +16,7 @@ exports.expressCreateServer = function (hook_name, args, cb) {
|
||||||
if(sanitizedPadId != padId)
|
if(sanitizedPadId != padId)
|
||||||
{
|
{
|
||||||
var real_url = sanitizedPadId;
|
var real_url = sanitizedPadId;
|
||||||
|
real_url = encodeURIComponent(real_url);
|
||||||
var query = url.parse(req.url).query;
|
var query = url.parse(req.url).query;
|
||||||
if ( query ) real_url += '?' + query;
|
if ( query ) real_url += '?' + query;
|
||||||
res.header('Location', real_url);
|
res.header('Location', real_url);
|
||||||
|
|
Loading…
Reference in New Issue