From 551327bec658bd2900fab3af7fdc1143ce67009e Mon Sep 17 00:00:00 2001 From: FireFart Date: Sat, 1 Mar 2014 13:30:24 +0100 Subject: [PATCH] Added a check for Set-Cookie header in msftidy --- tools/msftidy.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/msftidy.rb b/tools/msftidy.rb index 1c41c9ec66..b95b6e34aa 100755 --- a/tools/msftidy.rb +++ b/tools/msftidy.rb @@ -465,6 +465,11 @@ class Msftidy if ln =~ /(?])/ error("datastore is modified in code: #{ln}", idx) end + + # do not read Set-Cookie header + if ln =~ /\[['"]Set-Cookie['"]\]/ + warn("Do not read Set-Cookie header directly, use res.get_cookies instead: #{ln}", idx) + end } end