]> sjero.net Git - wget/commitdiff
[svn] Made rewrite_shorthand_url recognize HOST:PORT again.
authorhniksic <devnull@localhost>
Fri, 1 Apr 2005 23:59:48 +0000 (15:59 -0800)
committerhniksic <devnull@localhost>
Fri, 1 Apr 2005 23:59:48 +0000 (15:59 -0800)
src/ChangeLog
src/url.c

index d4cb88a9478d65a69a7eeb6135856e662964c1cb..5d1390c045c41934f9c4303ae38b5d04210582ad 100644 (file)
@@ -1,3 +1,10 @@
+2005-04-02  Hrvoje Niksic  <hniksic@xemacs.org>
+
+       * url.c (rewrite_shorthand_url): Only accept recognized schemes.
+       That way "foo:80" will correctly be rewritten to "http://foo:80"
+       instead of left unchanged and ultimately rejected because of
+       "unsupported scheme foo".
+
 2005-03-31  Hrvoje Niksic  <hniksic@xemacs.org>
 
        * utils.c (number_to_string): Avoid explicit 64-bit constants;
index 041001adf5d6a6586689903217134400cc5f3228..82b4bcea9604372427009814b2f38a1e350eaf1e 100644 (file)
--- a/src/url.c
+++ b/src/url.c
@@ -544,7 +544,7 @@ rewrite_shorthand_url (const char *url)
 {
   const char *p;
 
-  if (url_has_scheme (url))
+  if (url_scheme (url) != SCHEME_INVALID)
     return NULL;
 
   /* Look for a ':' or '/'.  The former signifies NcFTP syntax, the