Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Regex line ending adjustment

gotta keep @tw-ngreen happy
  • Loading branch information...
commit 14e1d2d755517b162663186ea6fb671f2ac7e40b 1 parent 4f185aa
Justin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/brakeman/checks/check_redirect.rb
2  lib/brakeman/checks/check_redirect.rb
View
@@ -78,7 +78,7 @@ def include_user_input? call, immediate = :immediate
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
Please sign in to comment.
Something went wrong with that request. Please try again.