Remove unnecessary match against an Regex
authorJens Hausdorf <mail@jens-hausdorf.de>
Tue, 30 Apr 2019 20:44:42 +0000 (22:44 +0200)
committerGitHub <noreply@github.com>
Tue, 30 Apr 2019 20:44:42 +0000 (22:44 +0200)
see https://community.woltlab.com/thread/218145-smalltalk-labern-reden-diskutieren/?postID=1740957#post1740957

wcfsetup/install/files/lib/util/CronjobUtil.class.php

index d0f3625eadb37a043c929ca7e34ce90f4f7f1b8b..a3b252c159ec952bea33f7d6e6630ffad300a07b 100644 (file)
@@ -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."'");
                }