From: Amos Jeffries Date: Sat, 21 Dec 2013 04:54:54 +0000 (-0800) Subject: Fix \-unescaping in quoted strings from helpers X-Git-Tag: SQUID_3_5_0_1~449 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b48a944e10979e3ff6e190e92d549bbe4ef26114;p=thirdparty%2Fsquid.git Fix \-unescaping in quoted strings from helpers strwordtok() was unescaping '\' values in unquoted tokens. This causes problems with NTLM helper response user\DOMAIN values which are sent as a un-quoted un-escaped value. Restrict un-escaping of '\' to only occur when inside "quoted" words. --- diff --git a/src/String.cc b/src/String.cc index e5ff7a2f5d..f0010cf1bd 100644 --- a/src/String.cc +++ b/src/String.cc @@ -376,7 +376,8 @@ strwordtok(char *buf, char **t) switch (ch) { case '\\': - ++p; + if (quoted) + ++p; switch (*p) {