Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUGFIX Escape forward slashes when exploding wildcard rules #48927

Closed
wants to merge 1 commit into from

Conversation

matt-farrugia
Copy link
Contributor

Array keys with a forward slash '/' passed into the validator will cause a preg_match(): Unknown modifier exception if they are validated using a rule keyed with a wildcard '*'

This is due to the pattern being terminated early by the existence of the '/' in the pattern variable, this same fix is also used in Validator.php

Array keys with a forward slash '/' passed into the validator will cause a preg_match(): Unknown modifier exception if they are validated using a rule keyed with a wildcard '*'

This is due to the pattern being terminated early by the existence of the '/' in the pattern variable, this same fix is also used in Validator.php
@taylorotwell
Copy link
Member

No tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants