You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That means that if the $parameters array is numerically indexed, the scheduler does not escape the values. See Steps To Reproduce.
The fix is very simple, and I'm happy to submit a PR. I just want to make sure this is a bug and not intentional.
Steps To Reproduce:
// In App\Console\Kernelprotectedfunctionschedule(Schedule$schedule)
{
$schedule->command('my:command', ['first argument'])->everyMinute();
}
This results in the command php artisan my:command first argument to be run, when my expected behavior is php artisan my:command 'first argument' (argument should be quoted).
The text was updated successfully, but these errors were encountered:
Description:
The method Illuminate\Console\Scheduling\Schedule::compileParameters runs:
That means that if the
$parameters
array is numerically indexed, the scheduler does not escape the values. See Steps To Reproduce.The fix is very simple, and I'm happy to submit a PR. I just want to make sure this is a bug and not intentional.
Steps To Reproduce:
This results in the command
php artisan my:command first argument
to be run, when my expected behavior isphp artisan my:command 'first argument'
(argument should be quoted).The text was updated successfully, but these errors were encountered: