2 Commits
Author SHA1 Message Date
C-Duv 6b68de17e9 [Shell] fix(http): URL-encode message parameter
Message was not URL-encoded when sent (as "msg" URI parameter) which
could cause issues with some messages (because of spaces).

This commits uses cURL's "--data-urlencode" option for "msg" parameter
so that cURL does the encoding for us.
As a consequence, the script don't have to manually convert newlines (to
$NEWLINE_CHAR) anymore: cURL also does that for us.
2020-01-02 00:52:15 +01:00
C-Duv a47fed2080 [Shell] qa(bash): Sets "e" and "u" Shell options
This commits sets the "e" and "u" Shell options for better error
handling.

Because of "u", an additional test is required before using variable $1.
2020-01-02 00:51:52 +01:00