BIN: fix csp check in analyse-headers

the csp function didn't correctly return 1 when a missconfigured csp was
found
master
Jonathan Hodgson 4 years ago
parent 3f01926ab6
commit 349963cdad
  1. 1
      bin/.bin/webtest/analyse-headers

@ -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
} }

Loading…
Cancel
Save