aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorMarc Alexander <admin@m-a-styles.de>2019-07-21 21:38:27 +0200
committerMarc Alexander <admin@m-a-styles.de>2019-07-21 21:38:27 +0200
commit348979c13d284c7e81cae3c1cb18a88fed8494c1 (patch)
tree82f94c4725e0f37ac1d5aecb139de12224f3e4d2 /phpBB/phpbb
parent5d2e144624c586d1fdbb1ccaf8f238d53428ab6a (diff)
parent091e195717b8e455d0d8fd146e60b50a6633df17 (diff)
downloadforums-348979c13d284c7e81cae3c1cb18a88fed8494c1.tar
forums-348979c13d284c7e81cae3c1cb18a88fed8494c1.tar.gz
forums-348979c13d284c7e81cae3c1cb18a88fed8494c1.tar.bz2
forums-348979c13d284c7e81cae3c1cb18a88fed8494c1.tar.xz
forums-348979c13d284c7e81cae3c1cb18a88fed8494c1.zip
Merge branch '3.2.x' into 3.3.x
Diffstat (limited to 'phpBB/phpbb')
-rw-r--r--phpBB/phpbb/event/md_exporter.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/phpBB/phpbb/event/md_exporter.php b/phpBB/phpbb/event/md_exporter.php
index c3942bd7ce..1a2d7c989e 100644
--- a/phpBB/phpbb/event/md_exporter.php
+++ b/phpBB/phpbb/event/md_exporter.php
@@ -389,9 +389,16 @@ class md_exporter
$files = explode("\n + ", $file_details);
foreach ($files as $file)
{
+ if (!preg_match('#^([^ ]+)( \([0-9]+\))?$#', $file))
+ {
+ throw new \LogicException("Invalid event instances for file '{$file}' found for event '{$this->current_event}'", 1);
+ }
+
+ list($file) = explode(" ", $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);
+ throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 2);
}
if (($this->filter !== 'adm') && strpos($file, 'styles/prosilver/template/') === 0)
@@ -404,7 +411,7 @@ class md_exporter
}
else
{
- throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 2);
+ throw new \LogicException("Invalid file '{$file}' not found for event '{$this->current_event}'", 3);
}
$this->events_by_file[$file][] = $this->current_event;
@@ -424,7 +431,7 @@ class md_exporter
}
else
{
- throw new \LogicException("Invalid file list found for event '{$this->current_event}'", 2);
+ throw new \LogicException("Invalid file list found for event '{$this->current_event}'", 1);
}
return $files_list;