mirror of
https://github.com/rkd77/elinks.git
synced 2025-01-03 14:57:44 -05:00
Win32: Don't check file_is_dir if name ends with backslash.
This commit is contained in:
parent
131cf0dd73
commit
375d8cc905
@ -271,7 +271,10 @@ file_protocol_handler(struct connection *connection)
|
|||||||
|
|
||||||
decode_uri_string(&name);
|
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
|
/* In order for global history and directory listing to
|
||||||
* function properly the directory url must end with a
|
* function properly the directory url must end with a
|
||||||
* directory separator. */
|
* directory separator. */
|
||||||
|
Loading…
Reference in New Issue
Block a user