summaryrefslogtreecommitdiff
path: root/forum/utils
diff options
context:
space:
mode:
authordeva <deva>2008-10-12 11:08:35 +0000
committerdeva <deva>2008-10-12 11:08:35 +0000
commit49e669dc744b8b3ffc35db6e7c39df9663427c35 (patch)
tree16b0cd0aa897d788e3596661ce992d92ff979e7a /forum/utils
parent2fcc8a388b27747bb534f0beba18114720f9b899 (diff)
Fixed image match in parser
Diffstat (limited to 'forum/utils')
-rw-r--r--forum/utils/parser.php2
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);