diff options
| author | Joas Schilling <nickvergessen@gmx.de> | 2014-04-28 21:10:08 +0200 |
|---|---|---|
| committer | Joas Schilling <nickvergessen@gmx.de> | 2014-04-28 21:10:08 +0200 |
| commit | b28c8aebaacc4ec8143857ca2f2516e442d2d887 (patch) | |
| tree | a2a41594f56093c6e6d3f776db449493bc0a3177 /phpBB/phpbb/event | |
| parent | da6eb0282dd90ac4c8f019d8516d274e60db4861 (diff) | |
| download | forums-b28c8aebaacc4ec8143857ca2f2516e442d2d887.tar forums-b28c8aebaacc4ec8143857ca2f2516e442d2d887.tar.gz forums-b28c8aebaacc4ec8143857ca2f2516e442d2d887.tar.bz2 forums-b28c8aebaacc4ec8143857ca2f2516e442d2d887.tar.xz forums-b28c8aebaacc4ec8143857ca2f2516e442d2d887.zip | |
[ticket/12273] Do not allow template events in non-html files
PHPBB3-12273
Diffstat (limited to 'phpBB/phpbb/event')
| -rw-r--r-- | phpBB/phpbb/event/md_exporter.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |
