From 485cfaf74d64584f76eab0758b11ab95ccf72fc7 Mon Sep 17 00:00:00 2001 From: Urban Müller Date: Tue, 8 Feb 2022 12:35:26 +0100 Subject: double quote should terminate urs, validates D() output with html links --- it_debug.class | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'it_debug.class') diff --git a/it_debug.class b/it_debug.class index 4105f1d..eca38ef 100644 --- a/it_debug.class +++ b/it_debug.class @@ -140,7 +140,7 @@ static function dump($args) $item = "$red$item$nored"; if ($htmlok) - $item = preg_replace("#(https?:)?//[^\s']*#", "\$0", strtr($item, $htmlspecialchars)); # htmlspecialchars() does not like bad utf8 + $item = preg_replace("#(https?:)?//[^\s'\"]+#", "\$0", strtr($item, $htmlspecialchars)); # htmlspecialchars() does not like bad utf8 if (preg_match('/^[\'"]/', $var)) $r .= "$item "; -- cgit v1.2.3