Fix a defect in the URLON encoding with empty strings.

This commit is contained in:
Ian Prest 2013-09-29 20:47:04 -04:00
parent 42bdb576d5
commit d643e7fd8a

View file

@ -26,7 +26,7 @@ URLON = {
return '_' + res.join('&') + ';';
}
// String or undefined
return '=' + encodeString((input || "null").toString());
return '=' + encodeString((input !== null ? input : "null").toString());
}
return stringify(input).replace(/;+$/g, '');