fix: include space and tab in special characters to match to encode url

This commit is contained in:
prssanna 2021-03-22 11:58:41 +05:30
parent e6b9f27768
commit 6827b6b3a0

View file

@ -335,7 +335,7 @@ frappe.router = {
return null;
} else {
a = String(a);
if (a && a.match(/[%'"]/)) {
if (a && a.match(/[%'"\s\t]/)) {
// if special chars, then encode
a = encodeURIComponent(a);
}