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

"Please enter a valid URL" when the URL contains 80 characters or more (since v1.0.18) #62

Closed
benface opened this issue Apr 29, 2019 · 4 comments
Labels

Comments

@benface
Copy link

benface commented Apr 29, 2019

It looks like this PR is the cause, because if I comment out that line ($value = idn_to_ascii...) it works fine. But when I keep it as is, any URL that is over 79 characters doesn't validate. Try with this URL for example (exactly 80 characters):

https://example.com/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

@benface
Copy link
Author

benface commented Apr 29, 2019

Related(?): https://bugs.php.net/bug.php?id=67084

@sebastian-lenz
Copy link
Owner

Hi, thanks for reporting this. I think we would be better off by switching to the url validator provided by Yii as it seems to offer a better functionality.

@sebastian-lenz
Copy link
Owner

I've just published a hotfix.

@benface
Copy link
Author

benface commented Apr 29, 2019

Thank you!!

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

No branches or pull requests

2 participants