mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-21 00:06:35 +00:00
use encodeURIComponent to encode API password (#1027)
This commit is contained in:
parent
3b76238241
commit
41e7235ccf
@ -226,7 +226,7 @@ class HassioSnapshot extends Polymer.Element {
|
||||
}
|
||||
|
||||
_computeDownloadUrl(snapshotSlug) {
|
||||
const password = encodeURI(this.hass.connection.options.authToken);
|
||||
const password = encodeURIComponent(this.hass.connection.options.authToken);
|
||||
return `/api/hassio/snapshots/${snapshotSlug}/download?api_password=${password}`;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user