]> sjero.net Git - wget/blobdiff - src/http.c
[svn] Check for wildcards in unescaped URL path.
[wget] / src / http.c
index b7580335fa8729b5f9f41846f4d4cfdd70297b8e..d3fc1c3e8fe4bd5662784a277f77acd0ff13e5e7 100644 (file)
@@ -2004,10 +2004,8 @@ http_loop (struct url *u, char **newloc, char **local_file, const char *referer,
 
   *newloc = NULL;
 
-  /* Warn on (likely bogus) wildcard usage in HTTP.  Don't use
-     has_wildcards_p because it would also warn on `?', and we know that
-     shows up in CGI paths a *lot*.  */
-  if (strchr (u->url, '*'))
+  /* Warn on (likely bogus) wildcard usage in HTTP.  */
+  if (has_wildcards_p (u->path))
     logputs (LOG_VERBOSE, _("Warning: wildcards not supported in HTTP.\n"));
 
   xzero (hstat);