mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
- fixing some bugs
- removing utf8 characters from email files (has been discussed internally, you guys know why) - making sure some opendir calls are checked before calling readdir. git-svn-id: file:///svn/phpbb/trunk@6912 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -137,7 +137,13 @@ class captcha
|
||||
{
|
||||
global $phpbb_root_path;
|
||||
|
||||
$dr = opendir($phpbb_root_path . 'includes/captcha/fonts');
|
||||
$dr = @opendir($phpbb_root_path . 'includes/captcha/fonts');
|
||||
|
||||
if (!$dr)
|
||||
{
|
||||
trigger_error('Unable to open includes/captcha/fonts directory.', E_USER_ERROR);
|
||||
}
|
||||
|
||||
while (false !== ($entry = readdir($dr)))
|
||||
{
|
||||
if (strtolower(pathinfo($entry, PATHINFO_EXTENSION)) == 'ttf')
|
||||
|
Reference in New Issue
Block a user