diff options
author | Urban Müller | 2023-03-17 15:16:36 +0100 |
---|---|---|
committer | Urban Müller | 2023-03-17 15:16:36 +0100 |
commit | 49429cfe68d8d576d6c0a0fc954e57b452dd5d41 (patch) | |
tree | 3e5845b918cb13d494451822b18af987b3fa5711 | |
parent | a8e931ec2f491d5650113cce725e785694b7cacd (diff) | |
download | itools-49429cfe68d8d576d6c0a0fc954e57b452dd5d41.tar.gz itools-49429cfe68d8d576d6c0a0fc954e57b452dd5d41.tar.bz2 itools-49429cfe68d8d576d6c0a0fc954e57b452dd5d41.zip |
remove unprintables in ED as well so xss.php can use them for testing
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 91342bd..5e89385 100644 --- a/it_debug.class +++ b/it_debug.class @@ -190,7 +190,7 @@ static function dump($args, $p = []) $item = "$red$item$nored"; if ($p['html']) - $item = preg_replace("#(https?:)?//[^\s'\"]+#", "<a href='\$0'>\$0</a>", strtr($item, $htmlspecialchars)); # htmlspecialchars() does not like bad utf8 + $item = it::replace('[\x00-\x08\x0b-\x0c\x0e-\x1f]' => "", preg_replace("#(https?:)?//[^\s'\"]+#", "<a href='\$0'>\$0</a>", strtr($item, $htmlspecialchars)), 'utf8' => false); # htmlspecialchars() does not like bad utf8 if (preg_match('/^[\'"]/', $var)) $r .= "$item "; |