mirror of
https://github.com/Sebclem/hassio-nextcloud-backup.git
synced 2024-11-25 18:43:00 +01:00
🚑 Use encodeURIComponent for passwords
This commit is contained in:
parent
c4f5b00a84
commit
cf93b87591
@ -211,7 +211,7 @@ class WebdavTools {
|
||||
let options = {
|
||||
body: stream,
|
||||
username: this.username,
|
||||
password: this.password,
|
||||
password: encodeURIComponent(this.password),
|
||||
};
|
||||
if (conf.ssl === "true") {
|
||||
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
||||
@ -306,7 +306,7 @@ class WebdavTools {
|
||||
let conf = this.getConf();
|
||||
let options = {
|
||||
username: this.username,
|
||||
password: encodeURI(this.password),
|
||||
password: encodeURIComponent(this.password),
|
||||
};
|
||||
if (conf.ssl === "true") {
|
||||
options["https"] = { rejectUnauthorized: conf.self_signed === "false" };
|
||||
|
Loading…
Reference in New Issue
Block a user