fix: #10208, don't use leading slash in directory names

change to use decodeURIComponent in utils.params
This commit is contained in:
Barış Soner Uşaklı
2022-01-30 18:51:28 -05:00
parent 40a0e6dd0b
commit 1d01741ae7
2 changed files with 6 additions and 5 deletions

View File

@@ -645,10 +645,10 @@
params.forEach(function (param) {
const val = param.split('=');
let key = decodeURI(val[0]);
let key = decodeURIComponent(val[0]);
const value = (
options.disableToType ||
options.skipToType[key] ? decodeURI(val[1]) : utils.toType(decodeURI(val[1]))
options.skipToType[key] ? decodeURIComponent(val[1]) : utils.toType(decodeURIComponent(val[1]))
);
if (key) {