-
Notifications
You must be signed in to change notification settings - Fork 120
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
Unable to add urls with complex query string #28
Comments
Thank you for opening this issue! |
I'm running on latest, and fixed it by removeing the trailing - 'url' => 'required|max:500|regex:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\_\-\?\=\/\w \.-]*)*\/?$/',
+ 'url' => 'required|max:500|regex:/^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\_\-\?\=\/\w \.-]*)*\/?/', |
You should allow pretty much any character in the query string, stuff like A better approach would be to use |
With my push GitHub automatically closed the issue, sorry. In the end I decided to use default Laravel url validation, which uses FILTER_VALIDATE_URL anyway! |
If I try to shorten any url with a query string I get the following error:
The url format is invalid.
The text was updated successfully, but these errors were encountered: