mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2026-01-10 17:12:07 +08:00
Remove asterisks and line breaks
This commit is contained in:
@@ -46,8 +46,8 @@ pushover_send() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
export _H1="Content-Type: application/json"
|
export _H1="Content-Type: application/json"
|
||||||
_content="$(printf "*%s*\n" "$_content" | _json_encode)"
|
_content="$(printf "%s" "$_content" | _json_encode)"
|
||||||
_subject="$(printf "*%s*\n" "$_subject" | _json_encode)"
|
_subject="$(printf "%s" "$_subject" | _json_encode)"
|
||||||
_data="{\"token\": \"$PUSHOVER_TOKEN\",\"user\": \"$PUSHOVER_USER\",\"title\": \"$_subject\",\"message\": \"$_content\",\"sound\": \"$PUSHOVER_SOUND\", \"device\": \"$PUSHOVER_DEVICE\", \"priority\": \"$PUSHOVER_PRIORITY\"}"
|
_data="{\"token\": \"$PUSHOVER_TOKEN\",\"user\": \"$PUSHOVER_USER\",\"title\": \"$_subject\",\"message\": \"$_content\",\"sound\": \"$PUSHOVER_SOUND\", \"device\": \"$PUSHOVER_DEVICE\", \"priority\": \"$PUSHOVER_PRIORITY\"}"
|
||||||
|
|
||||||
response="$(_post "$_data" "$PUSHOVER_URI")"
|
response="$(_post "$_data" "$PUSHOVER_URI")"
|
||||||
|
|||||||
Reference in New Issue
Block a user