1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-02-02 15:09:23 -05:00

Revert "Fixed the issue with ../ reported by me 29 Aug 2007 on elinks-dev."

This reverts commit 39677b88b53fdd7eeba90c0c9584cbcf1aaaab87.
This commit is contained in:
Witold Filipczyk 2007-09-11 18:35:49 +02:00 committed by Witold Filipczyk
parent 39677b88b5
commit 2def774e6c

View File

@ -811,13 +811,11 @@ 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. */