Merge branch 'master' of github.com:Pita/etherpad-lite

pull/502/merge
John McLear 2012-02-25 19:37:29 +00:00
commit 7e3a3bb9ea
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ async.waterfall([
//the pad id was sanitized, so we redirect to the sanitized version
if(sanitizedPadId != padId)
{
var real_path = req.path.replace(/^\/p\/[^\/]+/, '/p/' + sanitizedPadId);
var real_path = req.path.replace(/^\/p\/[^\/]+/, './' + sanitizedPadId);
res.header('Location', real_path);
res.send('You should be redirected to <a href="' + real_path + '">' + real_path + '</a>', 302);
}