diff --git a/phpBB/phpbb/event/md_exporter.php b/phpBB/phpbb/event/md_exporter.php index 574827ac44..b641281a04 100644 --- a/phpBB/phpbb/event/md_exporter.php +++ b/phpBB/phpbb/event/md_exporter.php @@ -259,7 +259,7 @@ class md_exporter $files = explode("\n + ", $file_details); foreach ($files as $file) { - if (!file_exists($this->path . $file)) + if (!file_exists($this->path . $file) || substr($file, -5) !== '.html') { throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 1); }