]> sjero.net Git - wget/commitdiff
[svn] Don't treat '?' as a query string separator when parsing FTP URLs.
authorhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:09:14 +0000 (21:09 -0800)
committerhniksic <devnull@localhost>
Tue, 19 Feb 2002 05:09:14 +0000 (21:09 -0800)
Published in <sxslmdqxdmq.fsf@florida.arsdigita.de>.

src/ChangeLog
src/url.c

index 0586a2ccbba3d8a242aa66e95c8be02af7a68c70..19eb694c681c4e449523ed97be63e94fb88270e7 100644 (file)
@@ -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
index b1087378c58a44470e7e89e7367fa59b4cb90516..911c4100a0822fa0634a3e0050c81d86c1aaf31f 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -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 == '#')
     {