Skip to content

Commit

Permalink
ADOdb#968 add checking htmlspecialchars setting
Browse files Browse the repository at this point in the history
  • Loading branch information
bblemm committed May 8, 2023
1 parent 928936a commit d276968
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tohtml.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,11 @@ function mime_content_type ($file) {

default:
if ($v) {
$v = htmlspecialchars(stripslashes(trim($v)));
if ($htmlspecialchars) {
$v = htmlspecialchars(trim($v));
} else {
$v = trim($v);
}
} elseif ($v === null) {
$v = '(NULL)';
} else {
Expand Down

0 comments on commit d276968

Please sign in to comment.