Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Forgot to remove a + instead of a path join

  • Loading branch information...
commit 92ea46d23cee6cfc0f3224c25358d59e902c82bd 1 parent 7808b7a
authored March 26, 2010

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  lib/node-router.js
2  lib/node-router.js
@@ -311,7 +311,7 @@ exports.staticDirHandler = function(root, prefix) {
311 311
     if (prefix) filename = filename.replace(new RegExp('^'+prefix), '');
312 312
     // make sure nobody can explore our local filesystem
313 313
     filename = path.join(root, filename.replace(/\.\./g, '.'));
314  
-    if (filename == root) filename = path.join(root + 'index.html');
  314
+    if (filename == root) filename = path.join(root, 'index.html');
315 315
     loadResponseData(req, res, filename, function(headers, body, encoding) {
316 316
       res.writeHead(200, headers);
317 317
       res.write(body, encoding);

0 notes on commit 92ea46d

Please sign in to comment.
Something went wrong with that request. Please try again.