check_curl: fix special chars in crit string
This commit is contained in:
parent
0f047a898d
commit
3abdce195f
|
@ -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/</\</g' | sed 's/>/\>/g')
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue