summaryrefslogtreecommitdiff
path: root/forum/utils
diff options
context:
space:
mode:
authordeva <deva>2009-02-07 11:25:55 +0000
committerdeva <deva>2009-02-07 11:25:55 +0000
commite477004f3ae750dbbe23db06856dfcb9df3bb735 (patch)
treedbd3316e00a637dd39231eab386af80ae9b22abc /forum/utils
parent15f9963b42c0e85a576facf5db5ecf0e48e37217 (diff)
Added JPG as known image suffix.
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 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);