]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Reintegrated missing in strListIsSubstr().
authorFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 1 Mar 2009 22:22:22 +0000 (23:22 +0100)
committerFrancesco Chemolli <kinkie@squid-cache.org>
Sun, 1 Mar 2009 22:22:22 +0000 (23:22 +0100)
src/HttpHeaderTools.cc

index 24b285076d8ead1e99ac344289f220e20ea8fade..85c827ddee6a85e8d8045488fb2d862dccea5a92 100644 (file)
@@ -189,6 +189,7 @@ int
 strListIsSubstr(const String * list, const char *s, char del)
 {
     assert(list && del);
+    return (list->find(s) != String::npos);
 
     /** \note
      * Note: the original code with a loop is broken because it uses strstr()