mirror of
https://github.com/rr-/szurubooru.git
synced 2025-07-17 08:26:24 +00:00
client/general: improve URL escaping
Specifically, cater for /, + and % in URL components.
This commit is contained in:
@ -75,7 +75,7 @@ class Route {
|
||||
const keys = this.keys;
|
||||
const qsIndex = path.indexOf('?');
|
||||
const pathname = ~qsIndex ? path.slice(0, qsIndex) : path;
|
||||
const m = this.regexp.exec(decodeURIComponent(pathname));
|
||||
const m = this.regexp.exec(pathname);
|
||||
|
||||
if (!m) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user