Updated from $path to $value

This commit is contained in:
Chris Stayte 2025-10-21 20:07:03 -04:00 committed by GitHub
parent 7b6bc41d5b
commit ec9672ec68
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ class ValidGitRepositoryUrl implements ValidationRule
}
// Ensure any percent signs are valid percent-encodings like %20
if (! empty($path) && preg_match('/%(?![0-9A-Fa-f]{2})/', $path)) {
if (! empty($value) && preg_match('/%(?![0-9A-Fa-f]{2})/', $value)) {
$fail('The :attribute path contains invalid percent encoding.');
return;
}