#660 return empty object if parsing empty string
This commit is contained in:
parent
34a96d9428
commit
c8ae577c63
1 changed files with 1 additions and 0 deletions
|
|
@ -1017,6 +1017,7 @@ var m = (function app(window, undefined) {
|
|||
return str.join("&");
|
||||
}
|
||||
function parseQueryString(str) {
|
||||
if (str === "" || str == null) return {};
|
||||
if (str.charAt(0) === "?") str = str.slice(1);
|
||||
|
||||
var pairs = str.split("&"), params = {};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue