fix: safely decode URI Component
Signed-off-by: Vinayak Kulkarni <19776877+vinayakkulkarni@users.noreply.github.com>
This commit is contained in:
parent
52958a2317
commit
3417bd2df6
1 changed files with 2 additions and 2 deletions
|
|
@ -542,10 +542,10 @@ const drawPath = (ctx, path, query, z) => {
|
||||||
// Check if path in query is valid
|
// Check if path in query is valid
|
||||||
if (Array.isArray(query.path)) {
|
if (Array.isArray(query.path)) {
|
||||||
for (let i = 0; i < query.path.length; i += 1) {
|
for (let i = 0; i < query.path.length; i += 1) {
|
||||||
renderPath(query.path.at(i).split('|'));
|
renderPath(decodeURIComponent(query.path.at(i)).split('|'));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
renderPath(query.path.split('|'));
|
renderPath(decodeURIComponent(query.path).split('|'));
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue