mirror of
https://github.com/rkd77/elinks.git
synced 2024-06-29 01:45:34 +00:00
Fixed the issue with ../ reported by me 29 Aug 2007 on elinks-dev.
This commit is contained in:
parent
d9094c1866
commit
39677b88b5
|
@ -811,11 +811,13 @@ transform_file_url(struct uri *uri, const unsigned char *cwd)
|
|||
return NULL;
|
||||
|
||||
encode_uri_string(&dir, cwd, -1, 0);
|
||||
|
||||
#if 0
|
||||
/* Either we will end up with '//' and translate_directories()
|
||||
* will shorten it or the '/' will mark the inserted cwd as a
|
||||
* directory. */
|
||||
if (*path == '.') *path = '/';
|
||||
#endif
|
||||
if (*path == '.') memmove(uri->data, path + 1, strlen(path));
|
||||
|
||||
/* Insert the current working directory. */
|
||||
/* The offset is 7 == sizeof("file://") - 1. */
|
||||
|
|
Loading…
Reference in New Issue
Block a user