server banner message polishing if empty

This commit is contained in:
Dirk 2018-07-19 14:09:19 +02:00
parent ee8c70bce3
commit d83aed83fd

View File

@ -2498,7 +2498,7 @@ run_server_banner() {
if [[ $? -eq 0 ]]; then
serverbanner=$(sed -e 's/^Server: //' -e 's/^server: //' $TMPFILE)
if [[ "$serverbanner" == $'\n' ]] || [[ "$serverbanner" == $'\r' ]] || [[ "$serverbanner" == $'\n\r' ]] || [[ -z "$serverbanner" ]]; then
outln "banner exists but empty string"
outln "exists but empty string"
fileout "$jsonID" "INFO" "Server banner is empty"
else
emphasize_stuff_in_headers "$serverbanner"