Просмотр исходного кода

Merge pull request #12464 from prssanna/docname-trailing-space

fix: include space and tab in special characters to match to encode url
version-14
Faris Ansari 4 лет назад
committed by GitHub
Родитель
Сommit
5e5f470272
Не найден GPG ключ соответствующий данной подписи Идентификатор GPG ключа: 4AEE18F83AFDEB23
1 измененных файлов: 1 добавлений и 4 удалений
  1. +1
    -4
      frappe/public/js/frappe/router.js

+ 1
- 4
frappe/public/js/frappe/router.js Просмотреть файл

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


Загрузка…
Отмена
Сохранить