提交 120716a8 编写于 作者: J Jesse Glick

Merge pull request #798 from franciscoruiz/master

Fixed confirmPOST JS utility not working with CSRF protection enabled.
......@@ -46,6 +46,9 @@ THE SOFTWARE.
var form = document.createElement('form');
form.setAttribute('method', post ? 'POST' : 'GET');
form.setAttribute('action', href);
if (post) {
crumb.appendToForm(form);
}
document.body.appendChild(form);
form.submit();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册