Merge pull request #149 from adrianlang/master

Fix RegExp
pull/152/head
Peter 'Pita' Martischka 2011-09-01 14:51:59 -07:00
commit 4d76ccde06
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ async.waterfall([
{
res.header("Server", serverName);
var filePath = path.normalize(__dirname + "/.." +
req.url.replace(/\./g, '').split("?")[0]);
req.url.replace(/\.\./g, '').split("?")[0]);
res.sendfile(filePath, { maxAge: exports.maxAge });
});