mirror of
https://github.com/Karaka-Management/jsOMS.git
synced 2026-01-11 01:48:40 +00:00
impl. urlencode but only if not already encoded
This commit is contained in:
parent
c3ef47b718
commit
9964c6d6b7
|
|
@ -147,7 +147,7 @@ export class UriFactory
|
|||
let pars = [];
|
||||
for (const a in comps) {
|
||||
if (comps.hasOwnProperty(a) && comps[a] !== '' && comps[a] !== null) {
|
||||
pars.push(a + '=' + comps[a]);
|
||||
pars.push(a + '=' + (comps[a].includes('%') ? comps[a] : encodeURIComponent(comps[a])));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user