1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-08-20 20:54:47 -04:00

uri, file: Commented out broken code.

CGI scripts using GET method didn't work.
This commit is contained in:
Witold Filipczyk 2007-06-13 23:02:32 +02:00 committed by Witold Filipczyk
parent 3923a8c4fc
commit 1629c572b7

View File

@ -145,6 +145,8 @@ check_whether_file_exists(unsigned char *name)
return -1;
}
#if 0
/* unused */
static int
check_uri_file(const unsigned char *name)
{
@ -153,6 +155,7 @@ check_uri_file(const unsigned char *name)
return strcspn(name, chars);
}
#endif
/* Encodes URIs without encoding stuff like fragments and query separators. */
static void
@ -240,6 +243,8 @@ parse_uri(struct uri *uri, unsigned char *uristring)
return URI_ERRNO_OK;
} else if (uri->protocol == PROTOCOL_FILE) {
#if 0
/* CGI script using GET method didn't work, so I commented this code. --witekfl */
int datalen = check_uri_file(prefix_end);
unsigned char *frag_or_post = prefix_end + datalen;
@ -256,7 +261,8 @@ parse_uri(struct uri *uri, unsigned char *uristring)
} else {
datalen = strlen(prefix_end);
}
#endif
int datalen = strlen(prefix_end);
/* A bit of a special case, but using the "normal" host
* parsing seems a bit scary at this point. (see bug 107). */
if (datalen > 9 && !strncasecmp(prefix_end, "localhost/", 10)) {