diff options
-rw-r--r-- | it_debug.class | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/it_debug.class b/it_debug.class index 458fc90..7780b70 100644 --- a/it_debug.class +++ b/it_debug.class @@ -143,6 +143,9 @@ static function dump($args) if (isset($_SERVER['REMOTE_ADDR']) && !$plain) # html encode content and link any urls $item = htmlspecialchars($item, ENT_COMPAT, "ISO-8859-1"); + if (!$plain) + $item = preg_replace("#http://[^ ']*#", "<a href='\$0'>$0</a>", $item); + if (preg_match('/^[\'"]/', $var)) $r .= "$item "; else { |