Skip to content

Commit

Permalink
Merge pull request #341 from creative-commoners/pulls/4.0/xss-create-job
Browse files Browse the repository at this point in the history
[CVE-2021-27938] Prevent echoing request variable
  • Loading branch information
Maxime Rainville authored Mar 14, 2021
2 parents 7be5d70 + 4c8aa39 commit 1fe21e5
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 1fe21e5

Please sign in to comment.