From 38bfee9efe3e04d4ae6a1b3e4e7fd89032175682 Mon Sep 17 00:00:00 2001
From: Christian Schneider
Date: Fri, 8 Apr 2016 16:30:48 +0200
Subject: Also make https and schema-less urls clickable in ED()

---
 it_debug.class | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 ";
-- 
cgit v1.2.3