1
0
mirror of https://github.com/moparisthebest/wget synced 2024-07-03 16:38:41 -04:00

[svn] Made rewrite_shorthand_url recognize HOST:PORT again.

This commit is contained in:
hniksic 2005-04-01 15:59:48 -08:00
parent e65ff5729a
commit 334a0cf9c9
2 changed files with 8 additions and 1 deletions

View 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;

View File

@ -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