BIN: fix csp check in analyse-headers

the csp function didn't correctly return 1 when a missconfigured csp was
found
This commit is contained in:
Jonathan Hodgson 2021-01-11 14:09:40 +00:00
parent 3f01926ab6
commit 349963cdad

View file

@ -219,6 +219,7 @@ attacks (XSS).\n\n"
echo "Content-Security-Policy" | drawInBox echo "Content-Security-Policy" | drawInBox
message="$(echo "$message" | tr -d '\t')" message="$(echo "$message" | tr -d '\t')"
wecho -e "$message" wecho -e "$message"
return 1
fi fi
return 0 return 0
} }