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

EASY Fix: Enable Wildcard Subdomains w/ Just 2 Characters #232

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

jeromyjclark
Copy link

At or around line 251, in the 'static function IsValidDomainName($a)', simply add '*' into the first group so that the form will also accept an asterisk along with numbers, letters and hyphens within a subdomain name. When the daemon/cron runs its process -everything falls into place. In other words - it will work just like adding a subdomain using cPanel.

At or around line 251, in the 'static function IsValidDomainName($a)', simply add '\*' into the first group so that the form will also accept an asterisk along with numbers, letters and hyphens within a subdomain name. When the daemon/cron runs its process -everything falls into place. In other words - it will work just like adding a subdomain using cPanel.
What this does is give the ability to create wildcard subdomains for users with packages that include "unlimited subdomains" - while preventing that capability for everyone else.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant