From 023d6a6756c8381524f9f455fa6f97e1c3f572ed Mon Sep 17 00:00:00 2001 From: Ben Kelada Date: Tue, 1 Mar 2016 13:38:44 +1100 Subject: [PATCH] MDL-53291 javascript: fix jquery ajax requests when data contains ?? jQuery ajax requests containing multiple '?' get replaced with a string similar to jQuery152330039032_1231231, this is because it is processing a stringified data object as jsonp and thinks its a url. workaround is to add contenttype see https://github.com/jquery/jquery/issues/1799 --- lib/amd/build/ajax.min.js | 2 +- lib/amd/src/ajax.js | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/amd/build/ajax.min.js b/lib/amd/build/ajax.min.js index c7c80e17e5c..3af51d68cd9 100644 --- a/lib/amd/build/ajax.min.js +++ b/lib/amd/build/ajax.min.js @@ -1 +1 @@ -define(["jquery","core/config"],function(a,b){var c=function(a){var b,c,d=this,e=null,f=0;for(f=0;f