From: Francesco Chemolli Date: Sun, 1 Mar 2009 22:22:22 +0000 (+0100) Subject: Reintegrated missing in strListIsSubstr(). X-Git-Tag: SQUID_3_2_0_1~1144^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b34dcde218100e9adeafc3b2802cfb1647927ce6;p=thirdparty%2Fsquid.git Reintegrated missing in strListIsSubstr(). --- diff --git a/src/HttpHeaderTools.cc b/src/HttpHeaderTools.cc index 24b285076d..85c827ddee 100644 --- a/src/HttpHeaderTools.cc +++ b/src/HttpHeaderTools.cc @@ -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()