X-Git-Url: http://sjero.net/git/?p=wget;a=blobdiff_plain;f=src%2Furl.c;h=d5bdcdc36d0352dc6541556434b2adfb8f33971a;hp=aa3b59788954d4199875e518614a905cb38c6748;hb=47b8598349f7cf406b8357e3b2dd428a12f6be9a;hpb=efcfa7fd02e4c29b631eab7028a05974f9763f87 diff --git a/src/url.c b/src/url.c index aa3b5978..d5bdcdc3 100644 --- a/src/url.c +++ b/src/url.c @@ -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;