summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUrban Müller2024-02-08 16:17:37 +0100
committerUrban Müller2024-02-08 16:17:37 +0100
commit2b9648ffc9970d15d2019a561336def3c52e1210 (patch)
tree34dc18fcdf3881f89eb0baeefd343441d50de06c
parent7d10a1e37210802c1fd9a3cbc17d930ad4408e0a (diff)
downloaditools-2b9648ffc9970d15d2019a561336def3c52e1210.tar.gz
itools-2b9648ffc9970d15d2019a561336def3c52e1210.tar.bz2
itools-2b9648ffc9970d15d2019a561336def3c52e1210.zip
also quote variable names $foo->bar for valid html output
-rw-r--r--it_debug.class1
1 files changed, 1 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class
index 1c95acf..b929f9c 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -197,6 +197,7 @@ static function dump($args, $p = [])
$r .= "$item ";
else
{
+ $var = $p['html'] ? strtr($var, $htmlspecialchars) : $var;
$var = $p['short'] ? "" : "$blue$var=$noblue";
$r .= $previtem && preg_match("/\n/", $item . $previtem) ? "\n$var$item " : "$var$item ";
$previtem = $item;