Skip to content

Commit

Permalink
BUGFIX: */X are not possible in annotations
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
lars85 authored Aug 5, 2016
1 parent 4a6d66b commit 8fdcd61
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/Ttree/Scheduler/Annotations/Schedule.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '* * * * *';
}
Expand Down

0 comments on commit 8fdcd61

Please sign in to comment.