fix format
This commit is contained in:
parent
8635d89cc8
commit
2d282597ca
@ -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"
|
||||||
|
@ -164,12 +164,12 @@ _inwx_check_cookie() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_htmlEscape() {
|
_htmlEscape() {
|
||||||
local s
|
_s="$1"
|
||||||
s=${1//&/&}
|
_s=$(echo "$_s" | sed "s/&/&/g")
|
||||||
s=${s//</<}
|
_s=$(echo "$_s" | sed "s/</\</g")
|
||||||
s=${s//>/>}
|
_s=$(echo "$_s" | sed "s/>/\>/g")
|
||||||
s=${s//'"'/"}
|
_s=$(echo "$_s" | sed 's/"/\"/g')
|
||||||
printf -- %s "$s"
|
printf -- %s "$_s"
|
||||||
}
|
}
|
||||||
|
|
||||||
_inwx_login() {
|
_inwx_login() {
|
||||||
|
Loading…
Reference in New Issue
Block a user