1
0
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:
Kalle Olavi Niemitalo 2007-07-18 00:25:07 +03:00 committed by Witold Filipczyk
parent b787dc49d0
commit fa33920da2

View File

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