diff options
author | Urban Müller | 2014-10-23 14:25:39 +0200 |
---|---|---|
committer | Urban Müller | 2014-10-23 14:25:39 +0200 |
commit | 142403e2f2cd38715d55adb32a429aca85024ffe (patch) | |
tree | 09f6bc61c04a8c119f9bbec1de9ea9bff2922b0f | |
parent | 02f1b896616d58023a1219aa47e820b60d04cd95 (diff) | |
download | itools-142403e2f2cd38715d55adb32a429aca85024ffe.tar.gz itools-142403e2f2cd38715d55adb32a429aca85024ffe.tar.bz2 itools-142403e2f2cd38715d55adb32a429aca85024ffe.zip |
dont match urls across newlines
-rw-r--r-- | it_debug.class | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/it_debug.class b/it_debug.class index 62bbf3e..b6c6d41 100644 --- a/it_debug.class +++ b/it_debug.class @@ -141,7 +141,7 @@ static function dump($args) $item = "$red$item$nored"; if ($htmlok) - $item = preg_replace("#http://[^ ']*#", "<a href='\$0'>\$0</a>", htmlspecialchars($item)); + $item = preg_replace("#http://[^\s']*#", "<a href='\$0'>\$0</a>", htmlspecialchars($item)); if (preg_match('/^[\'"]/', $var)) $r .= "$item "; |