From 8fdcd61736122492255bd5bc5c7027810046efe5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A4rsle?= Date: Fri, 5 Aug 2016 10:33:58 +0200 Subject: [PATCH] BUGFIX: */X are not possible in annotations To use */2 in php annotations you have to escape the slash with *\/2. The php function needs to revert the backslash again to have the clean string for the cron command. --- Classes/Ttree/Scheduler/Annotations/Schedule.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Classes/Ttree/Scheduler/Annotations/Schedule.php b/Classes/Ttree/Scheduler/Annotations/Schedule.php index 463fcad..6b45d29 100644 --- a/Classes/Ttree/Scheduler/Annotations/Schedule.php +++ b/Classes/Ttree/Scheduler/Annotations/Schedule.php @@ -34,7 +34,7 @@ final class Schedule public function __construct(array $values) { if (isset($values['expression'])) { - $this->expression = (string)$values['expression']; + $this->expression = stripslashes((string)$values['expression']); } else { $this->expression = '* * * * *'; }