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

Domain names with hyphens are rejected by isValidUrl() #5656

Closed
anonymous-matomo-user opened this issue May 29, 2008 · 1 comment
Closed
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.

Comments

@anonymous-matomo-user
Copy link

I noticed a small glitch in 0.2.1: It’s impossible to add sites with hyphens in the domain, they won’t be accepted by the regex in isValidUrl().

Fix: put the hyphen at the end of the bracket expression, c.f.: http://www.php.net/manual/en/function.eregi.php#57824

@mattab
Copy link
Member

mattab commented Jun 8, 2008

dup of #242

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug For errors / faults / flaws / inconsistencies etc. wontfix If you can reproduce this issue, please reopen the issue or create a new one describing it.
Projects
None yet
Development

No branches or pull requests

2 participants