summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Schneider2016-04-08 16:30:48 +0200
committerChristian Schneider2016-04-08 16:30:48 +0200
commit38bfee9efe3e04d4ae6a1b3e4e7fd89032175682 (patch)
tree509f8428ab54d75ffdd1caef3b9663ef87dcf7a4
parent5cdb6c1c6d6d083eb4d2e3723b42cc928b037fce (diff)
downloaditools-38bfee9efe3e04d4ae6a1b3e4e7fd89032175682.tar.gz
itools-38bfee9efe3e04d4ae6a1b3e4e7fd89032175682.tar.bz2
itools-38bfee9efe3e04d4ae6a1b3e4e7fd89032175682.zip
Also make https and schema-less urls clickable in ED()
-rw-r--r--it_debug.class2
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class
index 02b7e64..5501353 100644
--- a/it_debug.class
+++ b/it_debug.class
@@ -138,7 +138,7 @@ static function dump($args)
$item = "$red$item$nored";
if ($htmlok)
- $item = preg_replace("#http://[^\s']*#", "<a href='\$0'>\$0</a>", htmlspecialchars($item));
+ $item = preg_replace("#(https?:)?//[^\s']*#", "<a href='\$0'>\$0</a>", htmlspecialchars($item));
if (preg_match('/^[\'"]/', $var))
$r .= "$item ";