From 3f6433096ba4182782463ad7a0d9824bedfc17f0 Mon Sep 17 00:00:00 2001 From: deva Date: Sun, 12 Oct 2008 11:40:08 +0000 Subject: Fixed parser to only recognize files when using numbers. --- 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 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", "\"$1\"", $output); // Replace URLs with tags - $output = preg_replace("/\{\{(.*?)\}\}/s", "File: $1", $output); + $output = preg_replace("/\{\{([0-9]*?)\}\}/s", "File: $1", $output); // Replace [quote title=...]...[/quote] $urls = ""; -- cgit v1.2.3