mirror of
https://github.com/ijprest/keyboard-layout-editor.git
synced 2026-04-10 10:01:04 -07:00
Fix a defect in the URLON encoding with empty strings.
This commit is contained in:
parent
42bdb576d5
commit
d643e7fd8a
1 changed files with 1 additions and 1 deletions
|
|
@ -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, '');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue