mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't treat '?' as a query string separator when parsing FTP URLs.
Published in <sxslmdqxdmq.fsf@florida.arsdigita.de>.
This commit is contained in:
parent
0e40fc9a3c
commit
b9e90c34b4
@ -1,3 +1,8 @@
|
||||
2002-02-19 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* url.c (url_parse): Don't treat '?' as query string separator
|
||||
when parsing FTP URLs.
|
||||
|
||||
2002-02-01 Hrvoje Niksic <hniksic@arsdigita.com>
|
||||
|
||||
* html-url.c (tag_handle_meta): Don't crash on <meta
|
||||
|
@ -802,6 +802,15 @@ url_parse (const char *url, int *error)
|
||||
query_b = p;
|
||||
p = strpbrk_or_eos (p, "#");
|
||||
query_e = p;
|
||||
|
||||
/* Hack that allows users to use '?' (a wildcard character) in
|
||||
FTP URLs without it being interpreted as a query string
|
||||
delimiter. */
|
||||
if (scheme == SCHEME_FTP)
|
||||
{
|
||||
query_b = query_e = NULL;
|
||||
path_e = p;
|
||||
}
|
||||
}
|
||||
if (*p == '#')
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user