From e477004f3ae750dbbe23db06856dfcb9df3bb735 Mon Sep 17 00:00:00 2001 From: deva Date: Sat, 7 Feb 2009 11:25:55 +0000 Subject: Added JPG as known image suffix. --- forum/utils/parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'forum/utils/parser.php') diff --git a/forum/utils/parser.php b/forum/utils/parser.php index e4a164e..c9872e5 100644 --- a/forum/utils/parser.php +++ b/forum/utils/parser.php @@ -41,7 +41,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:\/\/(\S*?\.jpg|\S*?\.gif|\S*?\.png|\S*?\.jpeg)/", $imgstartmarker."$1".$imgendmarker, $output); + $output = preg_replace("/http:\/\/(\S*?\.JPG|\S*?\.jpg|\S*?\.gif|\S*?\.png|\S*?\.jpeg)/", $imgstartmarker."$1".$imgendmarker, $output); // Replace URLs with tags $output = preg_replace("/http:\/\/(\S*?)([\n ]|$)/s", "$1$2", $output); -- cgit v1.2.3