summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--it_debug.class4
1 files changed, 2 insertions, 2 deletions
diff --git a/it_debug.class b/it_debug.class
index b653d22..941576c 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -145,8 +145,8 @@ function dump($args)
#$item = preg_replace('#\s+var \$_(.|\n)*?;\s*\n#', "", $item);
$item = "$red$item$nored";
- if (isset($_SERVER['REMOTE_ADDR']) && !$plain)
- $item = htmlspecialchars($item);
+ if (isset($_SERVER['REMOTE_ADDR']) && !$plain) # html encode content and link any urls
+ $item = preg_replace("#(http://[^'\"\s]+)#", '<a style="color:red" href="$1">$1</a>', htmlspecialchars($item));
if (preg_match('/^[\'"]/', $var))
$r .= "$item ";