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

Add domain rule #605

Open
arogachev opened this issue May 13, 2023 · 1 comment
Open

Add domain rule #605

arogachev opened this issue May 13, 2023 · 1 comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement

Comments

@arogachev
Copy link
Contributor

No description provided.

@samdark
Copy link
Member

samdark commented May 13, 2023

Need option to support wildcards.

Could be done with filter_var:

if ($allowWildcard) {
    $host = str_replace('*', 'wildcard', $host);
}

if (!filter_var($host, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) {
  // invalid
}

@samdark samdark added the status:ready for adoption Feel free to implement this issue. label May 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:ready for adoption Feel free to implement this issue. type:enhancement Enhancement
Projects
None yet
Development

No branches or pull requests

2 participants