mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
errr, allow linkage to download.php....
git-svn-id: file:///svn/phpbb/trunk@7643 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
456586475b
commit
4dd4302ff8
1 changed files with 6 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue