Fix grep 3.8 warnings on fgrep.

This commit is contained in:
Geert Hendrickx 2022-09-18 18:54:16 +02:00
parent c819a3014a
commit ffcf07f6b1

View File

@ -2405,7 +2405,7 @@ match_httpheader_key() {
pr_svrty_medium " ${nr}x" pr_svrty_medium " ${nr}x"
outln " -- checking first one only" outln " -- checking first one only"
out "$spaces" out "$spaces"
HEADERVALUE="$(fgrep -Fai "$key:" $HEADERFILE | head -1)" HEADERVALUE="$(grep -Fai "$key:" $HEADERFILE | head -1)"
HEADERVALUE="${HEADERVALUE#*:}" HEADERVALUE="${HEADERVALUE#*:}"
HEADERVALUE="$(strip_lf "$HEADERVALUE")" HEADERVALUE="$(strip_lf "$HEADERVALUE")"
HEADERVALUE="$(strip_leading_space "$HEADERVALUE")" HEADERVALUE="$(strip_leading_space "$HEADERVALUE")"