We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cd2eef3 + 5c0b831 commit 4a2b258Copy full SHA for 4a2b258
1 file changed
testssl.sh
@@ -491,11 +491,11 @@ html_reserved(){
491
local output
492
"$do_html" || return 0
493
#sed -e 's/\&/\&/g' -e 's/</\</g' -e 's/>/\>/g' -e 's/"/\"/g' -e "s/'/\'/g" <<< "$1"
494
- output="${1//&/&}"
495
- output="${output//</<}"
496
- output="${output//>/>}"
497
- output="${output//\"/"}"
498
- output="${output//\'/'}"
+ output="${1//&/$'&'amp;}"
+ output="${output//</$'&'lt;}"
+ output="${output//>/$'&'gt;}"
+ output="${output//\"/$'&'quot;}"
+ output="${output//\'/$'&'apos;}"
499
printf -- "%s" "$output"
500
return 0
501
}
0 commit comments