From 9020ed34623720f5c3448908cde43e4b24f92349 Mon Sep 17 00:00:00 2001 From: Jens Hausdorf Date: Tue, 30 Apr 2019 22:44:42 +0200 Subject: [PATCH] Remove unnecessary match against an Regex see https://community.woltlab.com/thread/218145-smalltalk-labern-reden-diskutieren/?postID=1740957#post1740957 --- wcfsetup/install/files/lib/util/CronjobUtil.class.php | 1 - 1 file changed, 1 deletion(-) diff --git a/wcfsetup/install/files/lib/util/CronjobUtil.class.php b/wcfsetup/install/files/lib/util/CronjobUtil.class.php index d0f3625ead..a3b252c159 100644 --- a/wcfsetup/install/files/lib/util/CronjobUtil.class.php +++ b/wcfsetup/install/files/lib/util/CronjobUtil.class.php @@ -595,7 +595,6 @@ final class CronjobUtil { // $longPattern = '/^'.$range.'+(,'.$range.')*$/i'; / does not work on some php installations $longPattern = '/^'.$range.'(,'.$range.')*$/i'; - preg_match($longPattern, $value); if ($value != '*' && !preg_match($longPattern, $value)) { throw new SystemException("invalid value '".$value."' given for cronjob attribute '".$name."'"); } -- 2.20.1