Skip to content

Commit

Permalink
decodeURIComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
klein0r committed Mar 20, 2024
1 parent 3ee1c4d commit 7c7bc62
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/sandbox.js
Expand Up @@ -1219,8 +1219,8 @@ function sandBox(script, name, verbose, debug, context) {
if (uri.username && uri.password) {
config.url = config.url.replace(`${uri.protocol}//${uri.username}:${uri.password}@`, `${uri.protocol}//`);
config.auth = {
username: decodeURI(uri.username),
password: decodeURI(uri.password),
username: decodeURIComponent(uri.username),
password: decodeURIComponent(uri.password),
};
}
}
Expand Down Expand Up @@ -1290,8 +1290,8 @@ function sandBox(script, name, verbose, debug, context) {
if (uri.username && uri.password) {
config.url = config.url.replace(`${uri.protocol}//${uri.username}:${uri.password}@`, `${uri.protocol}//`);
config.auth = {
username: decodeURI(uri.username),
password: decodeURI(uri.password),
username: decodeURIComponent(uri.username),
password: decodeURIComponent(uri.password),
};
}
}
Expand Down

0 comments on commit 7c7bc62

Please sign in to comment.