提交 852377b4 编写于 作者: N Neil Matatall

Return fast in an easily detectable and common use case

上级 3384dd2d
......@@ -35,6 +35,7 @@ class Brakeman::CheckLinkToHref < Brakeman::CheckLinkTo
call = result[:call] = result[:call].dup
@matched = false
url_arg = process call[3][2]
return if sexp?(url_arg) && url_arg.node_type == :string_interp && !url_arg[1].chomp.empty?
type, match = has_immediate_user_input? url_arg
if type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册