-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File starting with ' shows up before ../ in the directory listing (in rare cases) #66
Comments
It took me a while but it's very obvious in hindsight. Lines 1891 to 1893 in 5031bf1
So ".." was never sorted correctly, the ascii value of ".." is small so it happens to be the first entry most of the time. I am not sure how to do this best. Adding the check for the second argument would be an easy fix, but I am sure there is a better way.
|
g-rden@914c196 |
Very nice find! I'm good with that. |
I don't mind about the date. :) |
No longer includes ".." when sorting the directory entries for the directory listing, but adds it on top of the listing if the requested directory is not wwwroot. Besides fixing the sorting bug, this should make the sorting faster. This also does not print the mod date for the ".." entry anymore. Closes #66
Awesome, thank you for fixing this @g-rden! |
Still not sure what's going on, but here's a sample directory listing I was able to generate with 1.16 and master.
This doesn't reproduce with just any file with
'
for me.As you can see,
../
is not the first entry like it normally is.The text was updated successfully, but these errors were encountered: