summaryrefslogtreecommitdiff
path: root/forum/utils/parser.php
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/parser.php')
-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 5864753..f79be2a 100644
--- a/forum/utils/parser.php
+++ b/forum/utils/parser.php
@@ -42,7 +42,7 @@ function parse($input, $indent = "")
$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);
+ $output = preg_replace("/http:\/\/(.*?)([\n ]|$)/s", "<a href=\"http://$1\">$1</a>$2", $output);
// Convert marked images to img tags and links
$output = preg_replace("/".$imgstartmarker."(.*?)".$imgendmarker."/s", "<a href=\"http://$1\"><img alt=\"$1\" src=\"?mode=imagecache&amp;uri=http://$1\"/></a>", $output);