BIN: fix csp check in analyse-headers

the csp function didn't correctly return 1 when a missconfigured csp was
found
Jonathan Hodgson 4 years ago
parent e94ba0b5b2
commit 6dad0bf8ab
  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