From: Jens Hausdorf Date: Tue, 30 Apr 2019 20:44:42 +0000 (+0200) Subject: Remove unnecessary match against an Regex X-Git-Tag: 5.2.0_Alpha_1~109^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9020ed34623720f5c3448908cde43e4b24f92349;p=GitHub%2FWoltLab%2FWCF.git Remove unnecessary match against an Regex see https://community.woltlab.com/thread/218145-smalltalk-labern-reden-diskutieren/?postID=1740957#post1740957 --- 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."'"); }