mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
[svn] Don't rewrite "https://host" to "ftp://https//host" when SSL is not used.
This commit is contained in:
parent
efcfa7fd02
commit
47b8598349
@ -1,3 +1,8 @@
|
|||||||
|
2005-05-12 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
|
* url.c (rewrite_shorthand_url): Don't rewrite "https://host" to
|
||||||
|
"ftp://https//host" when SSL is not used.
|
||||||
|
|
||||||
2005-05-11 Hrvoje Niksic <hniksic@xemacs.org>
|
2005-05-11 Hrvoje Niksic <hniksic@xemacs.org>
|
||||||
|
|
||||||
* openssl.c (ssl_check_server_identity): Renamed to
|
* openssl.c (ssl_check_server_identity): Renamed to
|
||||||
|
@ -534,6 +534,12 @@ rewrite_shorthand_url (const char *url)
|
|||||||
if (p == url)
|
if (p == url)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
/* If we're looking at "://", it means the URL uses a scheme we
|
||||||
|
don't support, which may include "https" when compiled without
|
||||||
|
SSL support. Don't bogusly rewrite such URLs. */
|
||||||
|
if (p[0] == ':' && p[1] == '/' && p[2] == '/')
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (*p == ':')
|
if (*p == ':')
|
||||||
{
|
{
|
||||||
const char *pp;
|
const char *pp;
|
||||||
|
Loading…
Reference in New Issue
Block a user