From a96f58e2fc1239b0f80a4d478472a4f2e1f714d4 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Fri, 27 Jun 2014 17:56:38 +0200 Subject: link urls --- it_debug.class | 3 +++ 1 file changed, 3 insertions(+) (limited to 'it_debug.class') 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://[^ ']*#", "$0", $item); + if (preg_match('/^[\'"]/', $var)) $r .= "$item "; else { -- cgit v1.2.3