Fix false positive in cookie check
This commit is contained in:
parent
4ed3ffa0ed
commit
c8a687db7f
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue