diff --git a/lib/cron.php b/lib/cron.php index fb2ce03..bae0912 100644 --- a/lib/cron.php +++ b/lib/cron.php @@ -116,7 +116,7 @@ function execute($job,$async=TRUE) { // Failing to do so will cause PHP to hang until the execution of the program ends. $dir=dirname($this->script); $file=basename($this->script); - if (!preg_match($this->windows?'/^[A-Z]:\\/i':'/^\//',$dir)) + if (!preg_match($this->windows?'/^[A-Z]:\\\\/i':'/^\//',$dir)) $dir=getcwd().'/'.$dir; if ($this->windows) { pclose(popen(sprintf('start "cron" "%s" "%s\\%s" "/cron/%s"',$this->binary,$dir,$file,$job),'r'));