fix format

This commit is contained in:
neil 2024-09-15 14:30:12 +02:00
parent 8635d89cc8
commit 2d282597ca
2 changed files with 9 additions and 9 deletions

View File

@ -113,9 +113,9 @@ synology_dsm_deploy() {
# Default values for scheme, hostname and port # Default values for scheme, hostname and port
# Defaulting to localhost and http, because it's localhost… # Defaulting to localhost and http, because it's localhost…
[ -n "$SYNO_SCHEME" ] || SYNO_SCHEME="http" [ -n "$SYNO_SCHEME" ] || SYNO_SCHEME=http
[ -n "$SYNO_HOSTNAME" ] || SYNO_HOSTNAME="localhost" [ -n "$SYNO_HOSTNAME" ] || SYNO_HOSTNAME=localhost
[ -n "$SYNO_PORT" ] || SYNO_PORT="5000" [ -n "$SYNO_PORT" ] || SYNO_PORT=5000
_savedeployconf SYNO_SCHEME "$SYNO_SCHEME" _savedeployconf SYNO_SCHEME "$SYNO_SCHEME"
_savedeployconf SYNO_HOSTNAME "$SYNO_HOSTNAME" _savedeployconf SYNO_HOSTNAME "$SYNO_HOSTNAME"
_savedeployconf SYNO_PORT "$SYNO_PORT" _savedeployconf SYNO_PORT "$SYNO_PORT"

View File

@ -164,12 +164,12 @@ _inwx_check_cookie() {
} }
_htmlEscape() { _htmlEscape() {
local s _s="$1"
s=${1//&/&} _s=$(echo "$_s" | sed "s/&/&/g")
s=${s//</&lt;} _s=$(echo "$_s" | sed "s/</\&lt;/g")
s=${s//>/&gt;} _s=$(echo "$_s" | sed "s/>/\&gt;/g")
s=${s//'"'/&quot;} _s=$(echo "$_s" | sed 's/"/\&quot;/g')
printf -- %s "$s" printf -- %s "$_s"
} }
_inwx_login() { _inwx_login() {