1
0
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:
hniksic 2005-05-12 04:45:05 -07:00
parent efcfa7fd02
commit 47b8598349
2 changed files with 11 additions and 0 deletions

View File

@ -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>
* openssl.c (ssl_check_server_identity): Renamed to

View File

@ -534,6 +534,12 @@ rewrite_shorthand_url (const char *url)
if (p == url)
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 == ':')
{
const char *pp;