mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-23 17:39:13 -04:00
Change treatment of space character in URLs
jQuery changed it from using '+' to '%20' between versions 1 and 3. This updates the test to match.
This commit is contained in:
@@ -13,9 +13,7 @@ function getFormDataFromPairs (pairs) {
|
||||
|
||||
});
|
||||
|
||||
// Combine the pairs into a single string and replace all %-encoded spaces to
|
||||
// the '+' character; matches the behaviour of browser form submissions.
|
||||
return urlEncodedDataPairs.join('&').replace(/%20/g, '+');
|
||||
return urlEncodedDataPairs.join('&');
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user