fix ajaxprefilter to ignore case-sensitive check for POST

This commit is contained in:
Eric Schultz
2017-12-07 18:38:02 -06:00
parent b7f42f574a
commit 69ae223a36

View File

@@ -278,7 +278,7 @@ for (var i=0,mobile; mobile=mobiles[i]; i++) {
if (device.indexOf(mobile)>=0) {$('#footer').css('position','static'); break;}
}
$.ajaxPrefilter(function(s, orig, xhr){
if (s.type == "post" && !s.crossDomain) {
if (s.type.toLowerCase() == "post" && !s.crossDomain) {
s.data = s.data || "";
s.data += s.data?"&":"";
s.data += "csrf_token=<?=$var['csrf_token']?>";