-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Add Validator infrastructure #27961
Closed
Closed
Add Validator infrastructure #27961
Commits on Mar 10, 2022
-
Fix IDN domain name not being allowed
The filter_var function is unfortunately not perfect and doesn't support domain with unicode as well as url with underscores. Replace usage with a regex from Symfony validator. See https://bugs.php.net/search.php?cmd=display&search_for=FILTER_VALIDATE_URL Closes #27906 Signed-off-by: Carl Schwan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 7e6b882 - Browse repository at this point
Copy the full SHA 7e6b882View commit details -
Add an validator service with various constraints
The API is heavily inspired by Symfony validator while having a much simpler implementation since this doesn't do object validation with annotation. Signed-off-by: Carl Schwan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 0031bfb - Browse repository at this point
Copy the full SHA 0031bfbView commit details -
Signed-off-by: Carl Schwan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 9003fd1 - Browse repository at this point
Copy the full SHA 9003fd1View commit details -
Signed-off-by: Carl Schwan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 72294f4 - Browse repository at this point
Copy the full SHA 72294f4View commit details -
Signed-off-by: szaimen <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 27104b0 - Browse repository at this point
Copy the full SHA 27104b0View commit details
Commits on Mar 14, 2022
-
Merge constraint and validator
This simplifies the code a bit and make it possible for apps to add their own validators Signed-off-by: Carl Schwan <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 5751e9d - Browse repository at this point
Copy the full SHA 5751e9dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 2176988 - Browse repository at this point
Copy the full SHA 2176988View commit details -
Configuration menu - View commit details
-
Copy full SHA for 0bcae13 - Browse repository at this point
Copy the full SHA 0bcae13View commit details -
Configuration menu - View commit details
-
Copy full SHA for ec67ee4 - Browse repository at this point
Copy the full SHA ec67ee4View commit details -
Configuration menu - View commit details
-
Copy full SHA for df30b14 - Browse repository at this point
Copy the full SHA df30b14View commit details
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.