diff options
author | deva <deva> | 2008-10-12 11:40:08 +0000 |
---|---|---|
committer | deva <deva> | 2008-10-12 11:40:08 +0000 |
commit | 3f6433096ba4182782463ad7a0d9824bedfc17f0 (patch) | |
tree | 0432e69b8f53e45833ff00e783be889670ef7583 /forum/utils/parser.php | |
parent | 0b71a1a78732a52f6c074c02cd69d4dd90024ce2 (diff) |
Fixed parser to only recognize files when using numbers.
Diffstat (limited to 'forum/utils/parser.php')
-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 5ba5724..6d47162 100644 --- a/forum/utils/parser.php +++ b/forum/utils/parser.php @@ -48,7 +48,7 @@ function parse($input, $indent = "") $output = preg_replace("/".$imgstartmarker."(.*?)".$imgendmarker."/s", "<a href=\"http://$1\"><img alt=\"$1\" src=\"?mode=imagecache&uri=http://$1\"/></a>", $output); // Replace URLs with <a></a> tags - $output = preg_replace("/\{\{(.*?)\}\}/s", "<a href=\"?mode=file&fid=$1\">File: $1</a>", $output); + $output = preg_replace("/\{\{([0-9]*?)\}\}/s", "<a href=\"?mode=file&fid=$1\">File: $1</a>", $output); // Replace [quote title=...]...[/quote] $urls = ""; |