Explorar o código

Fixed invalid characters issue by Adjo

Link: https://opengamepanel.org/forum/viewthread.php?thread_id=6230
rocco27 %!s(int64=8) %!d(string=hai) anos
pai
achega
f0eb7a408f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      modules/cron/shared_cron_functions.php

+ 1 - 1
modules/cron/shared_cron_functions.php

@@ -273,7 +273,7 @@ function checkCronInput($min, $hour, $day, $month, $dayOfWeek) {
     $args = func_get_args();
     
     foreach ($args as $k => $arg) {
-        if (empty($arg) || strpbrk($arg, $blacklist) || preg_match('/\\s/', $arg)) {
+        if (strlen($arg) == 0 || strpbrk($arg, $blacklist) || preg_match('/\\s/', $arg)) {
             $returns[$k] = false;
         }
     }