提交 48ce80a6 编写于 作者: D Dmitriy Zaporozhets

Fix issue when developers are able to push to protected branch

When that branch contain a '/' in the branch name.
Fix for git over HTTP
上级 551946a3
......@@ -110,7 +110,7 @@ module Grack
# Need to reset seek point
@request.body.rewind
/refs\/heads\/([\w\.-]+)/n.match(input.force_encoding('ascii-8bit')).to_a.last
/refs\/heads\/([\/\w\.-]+)/n.match(input.force_encoding('ascii-8bit')).to_a.last
end
end
end
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册