mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
Reinstate "canonicalization" of path names for file URIs
This reverts commit 4f0aaa166e
and insert check for the "//" -> "/" change only to occur for
file:// URIs. This fixes the recent reports on broken handling
of relative file URIs starting with "..".
This commit is contained in:
parent
cdf2d8181c
commit
58b3b1e752
@ -766,6 +766,11 @@ normalize_uri(struct uri *uri, unsigned char *uristring)
|
||||
continue;
|
||||
}
|
||||
|
||||
} else if (is_uri_dir_sep(uri, src[1]) &&
|
||||
uri->protocol == PROTOCOL_FILE) {
|
||||
/* // - ignore first '/'. */
|
||||
src += 1;
|
||||
continue;
|
||||
}
|
||||
|
||||
/* We don't want to access memory past the NUL char. */
|
||||
|
Loading…
Reference in New Issue
Block a user