Skip to content

Field Heading is validated. #5219

@cznec

Description

@cznec
  • Laravel Version: 9.27.0
  • Nova Version: 4.19.5

Description:

The Heading field is validated in update and creation requests. The content of the field is transferred as a key for validation and this causes the entire application to crash if the field contains * followed by /. Laravel Validator detects this field as a wildcard and escapes the regular expression when composing the pattern (/Illuminate/Validation/ValidationData.php:64).

Quick fix = set the field as readonly.

Detailed steps to reproduce the issue on a fresh Nova installation:

  1. set the heading filed for resource Heading::make("*/")
  2. try to create/update resource

Metadata

Metadata

Assignees

Labels

bugVerified bug by the Nova team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions