1
0
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:
Witold Filipczyk 2007-09-09 14:29:38 +02:00 committed by Witold Filipczyk
parent d9094c1866
commit 39677b88b5

View File

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