1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

Fix query-part parsing in file: URIs (local CGI).

It was broken in 0.11.2.GIT (a64dd281e9).
Since then, $QUERY_STRING has been empty for <file:///foo/bar?query>.
uri.data is documented as containing both the path and the query.

[ Commit message by me.  --KON ]
This commit is contained in:
Witold Filipczyk 2007-06-14 08:12:30 +02:00 committed by Kalle Olavi Niemitalo
parent 6cd6a843d1
commit e96665134a

View File

@ -149,7 +149,7 @@ static int
check_uri_file(unsigned char *name)
{
/* Check POST_CHAR etc ... */
static const unsigned char chars[] = POST_CHAR_S "#?";
static const unsigned char chars[] = POST_CHAR_S "#";
return strcspn(name, chars);
}