aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/message_parser.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-05-19 13:25:18 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-05-19 13:25:18 +0000
commit4dd4302ff8740701b24596aac028dffbf11c1d09 (patch)
tree99fe2a3682d4e8d78ae6ede54fc8efdcae20ce84 /phpBB/includes/message_parser.php
parent456586475b14cd70be9fee003006b1c149537857 (diff)
downloadforums-4dd4302ff8740701b24596aac028dffbf11c1d09.tar
forums-4dd4302ff8740701b24596aac028dffbf11c1d09.tar.gz
forums-4dd4302ff8740701b24596aac028dffbf11c1d09.tar.bz2
forums-4dd4302ff8740701b24596aac028dffbf11c1d09.tar.xz
forums-4dd4302ff8740701b24596aac028dffbf11c1d09.zip
errr, allow linkage to download.php....
git-svn-id: file:///svn/phpbb/trunk@7643 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/message_parser.php')
-rw-r--r--phpBB/includes/message_parser.php6
1 files changed, 6 insertions, 0 deletions
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;
}
}