提交 14e1d2d7 编写于 作者: J Justin Collins

Regex line ending adjustment

gotta keep @tw-ngreen happy
上级 4f185aa2
......@@ -78,7 +78,7 @@ class Brakeman::CheckRedirect < Brakeman::BaseCheck
elsif arg[2] == :url_for and include_user_input? arg
return Match.new(immediate, arg)
#Ignore helpers like some_model_url?
elsif arg[2].to_s =~ /_(url|path)$/
elsif arg[2].to_s =~ /_(url|path)\z/
return false
end
elsif request_value? arg
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册