check_curl: fix special chars in crit string

This commit is contained in:
Cyberes 2024-11-18 19:14:01 -07:00
parent 0f047a898d
commit 3abdce195f
1 changed files with 1 additions and 1 deletions

View File

@ -443,7 +443,7 @@ fi
BODY_CONTAINS=""
if [ -n "$CRIT_STRING" ]; then
BODY=$(curl -s $FOLLOW_REDIRECTS $INSECURE $HEADERS $RESOLVE $TIMEOUT $AUTHENTICATION "$URL")
if ! [[ $BODY =~ $CRIT_STRING ]]; then
if ! echo "$BODY" | grep -Fq "$CRIT_STRING"; then
if $SANITIZE_HTML; then
BODY=$(echo "$BODY" | sed 's/</\&lt;/g' | sed 's/>/\&gt;/g')
fi