Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Fix path delimiters on windows for directory middleware #740

Merged
merged 1 commit into from

2 participants

@ForbesLindesay

Chrome manages to hide this problem, but it's an issue when using Firefox.

@tj tj merged commit e80e5a7 into from
@ForbesLindesay ForbesLindesay deleted the branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jan 25, 2013
  1. @ForbesLindesay
This page is out of date. Refresh to see the latest.
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/middleware/directory.js
View
2  lib/middleware/directory.js
@@ -174,7 +174,7 @@ function html(files, dir, useIcons) {
}
return '<li><a href="'
- + join(dir, file)
+ + dir.replace(/\\/g, '/') + '/' + file
+ '" class="'
+ classes.join(' ') + '"'
+ ' title="' + file + '">'
Something went wrong with that request. Please try again.