mirror of
https://github.com/affaan-m/ECC.git
synced 2026-10-26 18:35:05 +00:00
docs(laravel-security): drop the undefined sanitize_html validation rule
sanitize_html is not a built-in Laravel rule and the skill never
registers it, so the validator throws BadMethodCallException. The same
FormRequest already strips tags in validated(). Regenerated pi/core.
Signed-off-by: Wen <jwcastillo@gmail.com>
(cherry picked from commit 453c0651f7)
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -588,7 +588,7 @@ final class StorePostRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'title' => ['required', 'string', 'max:255', 'sanitize_html'],
|
||||
'title' => ['required', 'string', 'max:255'],
|
||||
'content' => ['required', 'string', 'max:10000'],
|
||||
'image' => [
|
||||
'required',
|
||||
|
||||
@@ -588,7 +588,7 @@ final class StorePostRequest extends FormRequest
|
||||
public function rules(): array
|
||||
{
|
||||
return [
|
||||
'title' => ['required', 'string', 'max:255', 'sanitize_html'],
|
||||
'title' => ['required', 'string', 'max:255'],
|
||||
'content' => ['required', 'string', 'max:10000'],
|
||||
'image' => [
|
||||
'required',
|
||||
|
||||
Reference in new issue
Block a user