From 49e669dc744b8b3ffc35db6e7c39df9663427c35 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 12 Oct 2008 11:08:35 +0000 Subject: Fixed image match in parser --- forum/utils/parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forum/utils') diff --git a/forum/utils/parser.php b/forum/utils/parser.php index ecf8913..db8791b 100644 --- a/forum/utils/parser.php +++ b/forum/utils/parser.php @@ -39,7 +39,7 @@ function parse($input, $indent = "") while(strpos($output, $imgendmarker)) $imgendmarker .= $imgendsymbol; // Find and mark image URLs (so that they don't get converted into normal links) - $output = preg_replace("/http:\/\/(.*\.jpg|.*\.gif|.*\.png|.*\.jpeg)/", $imgstartmarker."$1".$imgendmarker, $output); + $output = preg_replace("/http:\/\/(.*?\.jpg|.*?\.gif|.*?\.png|.*?\.jpeg)/", $imgstartmarker."$1".$imgendmarker, $output); // Replace URLs with tags $output = preg_replace("/http:\/\/(.*?)([\n ])/s", "$1$2", $output); -- cgit v1.2.3