mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
[ticket/12273] Do not allow template events in non-html files
PHPBB3-12273
This commit is contained in:
parent
da6eb0282d
commit
b28c8aebaa
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue