Shelly 3EM: url-encode user/password (#15308)

This commit is contained in:
andig 2024-08-08 18:56:26 +02:00 • committed by GitHub
parent 27e28f5788
commit e9b4309cf6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -13,7 +13,7 @@ params:
advanced: true
render: |
{{- define "uri" -}}
http://{{ if .user }}{{ .user }}:{{ .password }}@{{ end }}{{ .host }}
http://{{ if .user }}{{ urlEncode .user }}:{{ urlEncode .password }}@{{ end }}{{ .host }}
{{- end }}
type: custom
power: