From: Christos Tsantilas Date: Fri, 28 Jan 2011 18:34:27 +0000 (+0200) Subject: menu did not displayed in browser X-Git-Tag: take06~27^2~127^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9d5e94f57039c85277393e00a5ca8ab0eb1b284c;p=thirdparty%2Fsquid.git menu did not displayed in browser --- diff --git a/src/cache_manager.cc b/src/cache_manager.cc index 4bf081843e..7b23c766ce 100644 --- a/src/cache_manager.cc +++ b/src/cache_manager.cc @@ -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));