From 4dd4302ff8740701b24596aac028dffbf11c1d09 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 19 May 2007 13:25:18 +0000 Subject: [PATCH] errr, allow linkage to download.php.... git-svn-id: file:///svn/phpbb/trunk@7643 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/message_parser.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/phpBB/includes/message_parser.php b/phpBB/includes/message_parser.php index 211a7f22b0..f5b86b00a6 100644 --- a/phpBB/includes/message_parser.php +++ b/phpBB/includes/message_parser.php @@ -950,6 +950,12 @@ class bbcode_firstpass extends bbcode if ($pos_domain !== false && $pos_path >= $pos_domain && $pos_ext >= $pos_path) { + // Ok, actually we allow linking to some files (this may be able to be extended in some way later...) + if (strpos($url, '/' . $check_path . '/download.' . $phpEx) !== 0) + { + return false; + } + return true; } }