提交 8823b850 编写于 作者: E Emilio Tagua

Remove redundant conditional.

上级 152580ee
......@@ -84,11 +84,7 @@ def normalize_argument_to_redirection(fragment)
when %r{^\w[\w\d+.-]*:.*}
fragment
when String
if fragment =~ %r{^\w[\w\d+.-]*:.*}
fragment
else
@request.protocol + @request.host_with_port + fragment
end
@request.protocol + @request.host_with_port + fragment
when :back
raise RedirectBackError unless refer = @request.headers["Referer"]
refer
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册