Skip to content

Commit

Permalink
Remove CronTask arguments escaping - unusable. Need to find new approach
Browse files Browse the repository at this point in the history
  • Loading branch information
Stevad authored Aug 22, 2016
1 parent 09d6ef9 commit 33a7c76
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions CronTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ public function __construct($command, $action = null, array $params = array())

$clearedParams = array();
foreach ($params as $key => $value) {
$key = escapeshellcmd($key);
$value = escapeshellcmd($value);
if (!preg_match('/^[a-z]+\w+$/i', $key)) {
throw new InvalidArgumentException(
"Bad param name: '{$key}'. It must contain alphanumeric values and/or underscore."
Expand Down

0 comments on commit 33a7c76

Please sign in to comment.