提交 4ec2e08f 编写于 作者: F Francisco Ruiz

Fixed confirmPOST JS utility not working with CSRF protection enabled.

上级 be5cd4fd
......@@ -45,6 +45,7 @@ THE SOFTWARE.
var form = document.createElement('form');
form.setAttribute('method', post ? 'POST' : 'GET');
form.setAttribute('action', href);
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.
先完成此消息的编辑!
想要评论请 注册