diff options
author | Luc Didry <luc@didry.org> | 2013-12-05 08:41:29 +0100 |
---|---|---|
committer | Luc Didry <luc@didry.org> | 2013-12-05 08:41:29 +0100 |
commit | 3d8452b1439fd24473fb68653cb2f7e3e0bbdb4b (patch) | |
tree | 87b7ba7cd1a2ddc61924c479c1b5e42abf4db502 /src/node/hooks/express/padurlsanitize.js | |
parent | 03ff5563f4ed406b6afaacc575e06e86aa939947 (diff) | |
download | etherpad-lite-3d8452b1439fd24473fb68653cb2f7e3e0bbdb4b.zip |
Replace tabs indentation with spaces indentation
Some files are obviously external libraries, I didn't touch them
Diffstat (limited to 'src/node/hooks/express/padurlsanitize.js')
-rw-r--r-- | src/node/hooks/express/padurlsanitize.js | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/src/node/hooks/express/padurlsanitize.js b/src/node/hooks/express/padurlsanitize.js index 29782b69..2aadccdc 100644 --- a/src/node/hooks/express/padurlsanitize.js +++ b/src/node/hooks/express/padurlsanitize.js @@ -12,20 +12,20 @@ exports.expressCreateServer = function (hook_name, args, cb) { else { padManager.sanitizePadId(padId, function(sanitizedPadId) { - //the pad id was sanitized, so we redirect to the sanitized version - if(sanitizedPadId != padId) - { + //the pad id was sanitized, so we redirect to the sanitized version + if(sanitizedPadId != padId) + { var real_url = sanitizedPadId; var query = url.parse(req.url).query; if ( query ) real_url += '?' + query; - res.header('Location', real_url); - res.send(302, 'You should be redirected to <a href="' + real_url + '">' + real_url + '</a>'); - } - //the pad id was fine, so just render it - else - { - next(); - } + res.header('Location', real_url); + res.send(302, 'You should be redirected to <a href="' + real_url + '">' + real_url + '</a>'); + } + //the pad id was fine, so just render it + else + { + next(); + } }); } }); |