aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/install_convert.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-01-20 17:58:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-01-20 17:58:27 +0000
commit31e546c5e4ecd012ef9d93fa68f42c793e417303 (patch)
tree205934c32a9aff1bf4369b1f157d5d55abc1f3f6 /phpBB/install/install_convert.php
parentfae887b3a106fef9fb5828f636402d5323ba300d (diff)
downloadforums-31e546c5e4ecd012ef9d93fa68f42c793e417303.tar
forums-31e546c5e4ecd012ef9d93fa68f42c793e417303.tar.gz
forums-31e546c5e4ecd012ef9d93fa68f42c793e417303.tar.bz2
forums-31e546c5e4ecd012ef9d93fa68f42c793e417303.tar.xz
forums-31e546c5e4ecd012ef9d93fa68f42c793e417303.zip
- 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
Diffstat (limited to 'phpBB/install/install_convert.php')
-rw-r--r--phpBB/install/install_convert.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/install/install_convert.php b/phpBB/install/install_convert.php
index 0227b0316d..3ae6b8be1c 100644
--- a/phpBB/install/install_convert.php
+++ b/phpBB/install/install_convert.php
@@ -215,7 +215,13 @@ class install_convert extends module
$convertors = $sort = array();
$get_info = true;
- $handle = opendir('./convertors/');
+ $handle = @opendir('./convertors/');
+
+ if (!$handle)
+ {
+ $this->error('Unable to access the convertors directory', __LINE__, __FILE__);
+ }
+
while ($entry = readdir($handle))
{
if (preg_match('/^convert_([a-z0-9_]+).' . $phpEx . '/i', $entry, $m))