We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 031c2a5 + 30a33e9 commit a20fd79Copy full SHA for a20fd79
testssl.sh
@@ -2741,6 +2741,8 @@ run_hsts() {
2741
# strict parsing now as suggested in #2381
2742
hsts_age_sec="${HEADERVALUE#*=}"
2743
hsts_age_sec=${hsts_age_sec%%;*}
2744
+ # see #2466
2745
+ hsts_age_sec=$(strip_trailing_space "$hsts_age_sec")
2746
if [[ $hsts_age_sec =~ \" ]]; then
2747
# remove first an last " in $hsts_age_sec (borrowed from strip_trailing_space/strip_leading_space):
2748
hsts_age_sec=$(printf "%s" "${hsts_age_sec#"${hsts_age_sec%%[!\"]*}"}")
0 commit comments