Fix false positive in cookie check

This commit is contained in:
William Vu 2015-02-09 17:01:29 -06:00
parent 4ed3ffa0ed
commit c8a687db7f
No known key found for this signature in database
GPG Key ID: 68BD00CE25866743
1 changed files with 1 additions and 1 deletions

View File

@ -538,7 +538,7 @@ class Msftidy
end
# do not read Set-Cookie header (ignore commented lines)
if ln =~ /^(?!\s*#).+\[['"]Set-Cookie['"]\]/i
if ln =~ /^(?!\s*#).+\[['"]Set-Cookie['"]\](?!\s*=[^=~]+)/i
warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx)
end