mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Win32: Don't check file_is_dir if name ends with backslash.
This commit is contained in:
parent
b787dc49d0
commit
fa33920da2
@ -304,7 +304,10 @@ file_protocol_handler(struct connection *connection)
|
||||
|
||||
decode_uri_string(&name);
|
||||
|
||||
if (file_is_dir(name.source)) {
|
||||
/* In Win32, file_is_dir seems to always return 0 if the name
|
||||
* ends with a directory separator. */
|
||||
if ((name.length > 0 && dir_sep(name.source[name.length - 1]))
|
||||
|| file_is_dir(name.source)) {
|
||||
/* In order for global history and directory listing to
|
||||
* function properly the directory url must end with a
|
||||
* directory separator. */
|
||||
|
Loading…
Reference in New Issue
Block a user