]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
menu did not displayed in browser
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 28 Jan 2011 18:34:27 +0000 (20:34 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Fri, 28 Jan 2011 18:34:27 +0000 (20:34 +0200)
src/cache_manager.cc

index 4bf081843e934ff38ba41a86bd0625ffe43be646..7b23c766ceb1d421dd69f37f5f548b1c015deac1 100644 (file)
@@ -187,8 +187,7 @@ CacheManager::ParseUrl(const char *url)
     Must(len > 0);
     t = sscanf(url, "cache_object://%[^/]/%[^@?]%n@%[^?]?%s", host, request, &pos, password, params);
 
-    Must(pos > 0);
-    if (url[pos] == '?') {
+    if (pos >0 && url[pos] == '?') {
         ++pos;
         if (pos < len)
             xstrncpy(params, url + pos, sizeof(params));