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

[ticket/12273] Do not allow 3.1-A1 for template events

PHPBB3-12273
This commit is contained in:
Joas Schilling 2014-04-25 20:26:47 +02:00
parent 3bcda97e28
commit 18be18e998

View File

@ -209,8 +209,6 @@ class md_exporter
*/
public function validate_since($since)
{
$since = ($since === '3.1-A1') ? '3.1.0-a1' : $since;
if (!preg_match('#^\d+\.\d+\.\d+(?:-(?:a|b|rc|pl)\d+)?$#', $since))
{
throw new \LogicException("Invalid since information found for event '{$this->current_event}'");