Skip to content

Commit ee275d1

Browse files
committed
Fixed blank url test for jquery 1.6.2
1 parent 7ed9203 commit ee275d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/public/test/call-remote.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ asyncTest('allow empty form "action"', 1, function() {
9898
}
9999

100100
// Actual location (strip out settings.data that jQuery serializes and appends)
101-
ajaxLocation = settings.url.replace(settings.data,"").replace(/&$/, "");
101+
ajaxLocation = settings.url.replace(settings.data,"").replace(/&$/, "").replace(/\?$/, "");
102102
equal(ajaxLocation.match(/^(.*)/)[1], currentLocation, 'URL should be current page by default');
103103

104104
// Prevent the request from actually getting sent to the current page and

0 commit comments

Comments
 (0)