Skip to content

Commit 3ed0264

Browse files
committed
Prevent globbing in some cases
1 parent be6e8c5 commit 3ed0264

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

telegram.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ zbxApiAuth()
8686
\"id\": 1,
8787
\"auth\": null
8888
}
89-
" $ZABBIX_API_URL 2>/dev/null
89+
" "$ZABBIX_API_URL" 2>/dev/null
9090
)
9191

9292
if ! [ -z "$ZABBIX_AUTH" ]; then
@@ -128,7 +128,7 @@ zbxApiGetGraphId()
128128
\"auth\": \"$ZABBIX_AUTH_TOKEN\",
129129
\"id\": 1
130130
}
131-
" $ZABBIX_API_URL 2>/dev/null
131+
" "$ZABBIX_API_URL" 2>/dev/null
132132
)
133133

134134
if ! [ -z "$ZABBIX_GRAPH" ]; then
@@ -280,7 +280,7 @@ tlgResult()
280280
pushToLog()
281281
{
282282
if [[ $# -eq 1 ]]; then
283-
echo -e "[$(date +%Y-%m-%d\ %H:%M:%S)] Zabbix Telegram alertscript: $1" >> $SCRIPT_LOG_PATH
283+
echo -e "[$(date +%Y-%m-%d\ %H:%M:%S)] Zabbix Telegram alertscript: $1" >> "$SCRIPT_LOG_PATH"
284284
fi
285285
}
286286

0 commit comments

Comments
 (0)