fix: include space and tab in special characters to match to encode url (bp #12632) (#12634)

(cherry picked from commit 6827b6b3a0)

Co-authored-by: prssanna <prssud@gmail.com>
This commit is contained in:
mergify[bot] 2021-03-22 13:48:03 +05:30 committed by GitHub
parent ccc8deed07
commit cd96c56087
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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);
}