1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-09-13 00:38:32 -04:00

Decode uri for displaying for all protocols.

This change first appeared in commit 047bf7e1c6
and was reverted by merge with the master later. Thanks, Kalle.
This commit is contained in:
Witold Filipczyk 2007-03-06 22:12:57 +01:00 committed by Witold Filipczyk
parent da5eed4dba
commit 9a9832887e

View File

@ -63,12 +63,8 @@ init_directory_listing(struct string *page, struct uri *uri)
&& !add_char_to_string(&dirpath, local ? CHAR_DIR_SEP : '/'))
goto out_of_memory;
if (local || uri->protocol == PROTOCOL_FSP || uri->protocol == PROTOCOL_GOPHER
|| uri->protocol == PROTOCOL_SMB) {
/* A little hack to get readable Gopher names. We should find a
* way to do it more general. */
decode_uri_string(&dirpath);
}
/* Decode the uri for displaying. */
decode_uri_string(&dirpath);
if (!local && !add_char_to_string(&location, '/'))
goto out_of_memory;