diff options
Diffstat (limited to 'forum/utils')
-rw-r--r-- | forum/utils/parser.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 <a/> 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 <a></a> tags $output = preg_replace("/http:\/\/(.*?)([\n ])/s", "<a href=\"http://$1\">$1</a>$2", $output); |