Don't add csrf token if cookie expired (#1392)

This commit is contained in:
jekkos
2017-07-18 08:51:01 +02:00
parent 858845f4f5
commit 5d49728c74

View File

@@ -27,7 +27,7 @@
};
$.post = function() {
arguments[1] = $.extend(arguments[1], csrf_form_base());
arguments[1] = csrf_token() ? $.extend(arguments[1], csrf_form_base()) : arguments[1];
post.apply(this, arguments);
};