diff options
author | deva <deva> | 2009-02-07 11:25:55 +0000 |
---|---|---|
committer | deva <deva> | 2009-02-07 11:25:55 +0000 |
commit | e477004f3ae750dbbe23db06856dfcb9df3bb735 (patch) | |
tree | dbd3316e00a637dd39231eab386af80ae9b22abc /forum/utils | |
parent | 15f9963b42c0e85a576facf5db5ecf0e48e37217 (diff) |
Added JPG as known image suffix.
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 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 <a/> 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 <a></a> tags $output = preg_replace("/http:\/\/(\S*?)([\n ]|$)/s", "<a href=\"http://$1\">$1</a>$2", $output); |