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:
parent
e65ff5729a
commit
334a0cf9c9
@ -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>
|
2005-03-31 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* utils.c (number_to_string): Avoid explicit 64-bit constants;
|
* utils.c (number_to_string): Avoid explicit 64-bit constants;
|
||||||
|
@ -544,7 +544,7 @@ rewrite_shorthand_url (const char *url)
|
|||||||
{
|
{
|
||||||
const char *p;
|
const char *p;
|
||||||
|
|
||||||
if (url_has_scheme (url))
|
if (url_scheme (url) != SCHEME_INVALID)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
/* Look for a ':' or '/'. The former signifies NcFTP syntax, the
|
/* Look for a ':' or '/'. The former signifies NcFTP syntax, the
|
||||||
|
Loading…
Reference in New Issue
Block a user