check_curl: fix special chars in crit string
This commit is contained in:
parent
0f047a898d
commit
3abdce195f
|
@ -443,7 +443,7 @@ fi
|
||||||
BODY_CONTAINS=""
|
BODY_CONTAINS=""
|
||||||
if [ -n "$CRIT_STRING" ]; then
|
if [ -n "$CRIT_STRING" ]; then
|
||||||
BODY=$(curl -s $FOLLOW_REDIRECTS $INSECURE $HEADERS $RESOLVE $TIMEOUT $AUTHENTICATION "$URL")
|
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
|
if $SANITIZE_HTML; then
|
||||||
BODY=$(echo "$BODY" | sed 's/</\</g' | sed 's/>/\>/g')
|
BODY=$(echo "$BODY" | sed 's/</\</g' | sed 's/>/\>/g')
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue