aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--phpBB/includes/db/migrator.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/db/migrator.php b/phpBB/includes/db/migrator.php
index 1042b767e8..359c34bf5d 100644
--- a/phpBB/includes/db/migrator.php
+++ b/phpBB/includes/db/migrator.php
@@ -139,6 +139,11 @@ class phpbb_db_migrator
*/
public function load_migrations($path, $check_fulfillable = true)
{
+ if (!is_dir($path))
+ {
+ throw new phpbb_db_migration_exception('DIRECTORY INVALID', $path);
+ }
+
$handle = opendir($path);
while (($file = readdir($handle)) !== false)
{