提交 b0f867fc 编写于 作者: F Francisco Ruiz

Added CSRF crumb to actions requiring confirmation only when POST method is used.

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