peliprint/app/Http/Requests/Admin/Extensions/Blueprint/BlueprintSettingsFormRequest.php
purple 46158e6079 Arguments parsed through shell are now checked by escapeshellarc($var).
Panel administrators will no longer have access to the shell. This includes the developer terminal turning into a Blueprint execute terminal. (something you'll probably never use anyways.)
2023-06-27 21:40:35 +02:00

35 lines
806 B
PHP

<?php
namespace Pterodactyl\Http\Requests\Admin\Extensions\Blueprint;
use Pterodactyl\Http\Requests\Admin\AdminFormRequest;
class BlueprintSettingsFormRequest extends AdminFormRequest
{
/**
* Return all the rules to apply to this request's data.
*/
public function rules(): array
{
return [
'placeholder' => 'string',
'developer' => 'string',
'developer:cmd' => 'string',
'telemetry' => 'string',
];
}
public function attributes(): array
{
return [
'placeholder' => 'Placeholder',
'developer' => 'Developer Mode',
'developer:cmd' => 'Blueprint Execute Command',
'telemetry' => 'Telemetry',
];
}
}