1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-06-30 01:55:30 +00:00

Win32: Don't check file_is_dir if name ends with backslash.

This commit is contained in:
Kalle Olavi Niemitalo 2007-07-18 00:25:07 +03:00 committed by Kalle Olavi Niemitalo
parent 131cf0dd73
commit 375d8cc905

View File

@ -271,7 +271,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. */