1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-05-05 15:16:16 +02:00

[ticket/12273] Also check file for adm "Location:" events

PHPBB3-12273
This commit is contained in:
Joas Schilling 2014-04-28 21:14:29 +02:00
parent b28c8aebaa
commit f57df8e12e

View File

@ -287,6 +287,11 @@ class md_exporter
else if ($this->filter == 'adm')
{
$file = substr($file_details, strlen('* Location: '));
if (!file_exists($this->path . $file) || substr($file, -5) !== '.html')
{
throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 1);
}
$files_list['adm'][] = substr($file, strlen('adm/style/'));
$this->events_by_file[$file][] = $this->current_event;