1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-11 03:04:09 +02:00

[feature/avatars] Fix coding guidelines infractions

This commit is contained in:
Marc Alexander
2012-11-12 16:27:45 +01:00
parent 4c4b82416b
commit 940d768592
3 changed files with 12 additions and 5 deletions

View File

@@ -142,7 +142,8 @@ class phpbb_avatar_driver_core_local extends phpbb_avatar_driver
if ($dh)
{
while (($cat = readdir($dh)) !== false) {
while (($cat = readdir($dh)) !== false)
{
if ($cat[0] != '.' && preg_match('#^[^&"\'<>]+$#i', $cat) && is_dir("$path/$cat"))
{
if ($ch = @opendir("$path/$cat"))