Skip to content

Commit

Permalink
[CVE-2021-27938] Prevent echoing request variable
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Mar 3, 2021
1 parent 7be5d70 commit 4c8aa39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Tasks/CreateQueuedJobTask.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function run($request)
$now = time();
if ($start >= $now) {
$friendlyStart = date('Y-m-d H:i:s', $start);
echo "Job ".$request['name']. " queued to start at: <b>".$friendlyStart."</b>";
echo 'Job queued to start at: <b>' . $friendlyStart . '</b>';
singleton('Symbiote\\QueuedJobs\\Services\\QueuedJobService')->queueJob($job, $start);
} else {
echo "'start' parameter must be a date/time in the future, parseable with strtotime";
Expand Down

0 comments on commit 4c8aa39

Please sign in to comment.