mirror of
https://github.com/rkd77/elinks.git
synced 2024-09-17 01:16:16 -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:
parent
da5eed4dba
commit
9a9832887e
@ -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 the uri for displaying. */
|
||||
decode_uri_string(&dirpath);
|
||||
}
|
||||
|
||||
if (!local && !add_char_to_string(&location, '/'))
|
||||
goto out_of_memory;
|
||||
|
Loading…
Reference in New Issue
Block a user