mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Prevents tests for replaceInData to take place if replaceInUrl is already true.
This commit is contained in:
@@ -23,7 +23,7 @@ jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
|
||||
url = s.url,
|
||||
hasCallback = s.jsonp !== false,
|
||||
replaceInUrl = hasCallback && rjsonp.test( url ),
|
||||
replaceInData = hasCallback && typeof data === "string" &&
|
||||
replaceInData = hasCallback && !replaceInUrl && typeof data === "string" &&
|
||||
!( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") &&
|
||||
rjsonp.test( data );
|
||||
|
||||
|
||||
Reference in New Issue
Block a user