errr, allow linkage to download.php....

git-svn-id: file:///svn/phpbb/trunk@7643 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen 2007-05-19 13:25:18 +00:00
parent 456586475b
commit 4dd4302ff8

View file

@ -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;
}
}