mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-01 06:20:46 +02: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:
@@ -950,6 +950,12 @@ class bbcode_firstpass extends bbcode
|
|||||||
|
|
||||||
if ($pos_domain !== false && $pos_path >= $pos_domain && $pos_ext >= $pos_path)
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user