Skip to content

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

Open
jeromyjclark wants to merge 2 commits intozpanel:masterfrom
jeromyjclark:patch-1
Open

EASY Fix: Enable Wildcard Subdomains w/ Just 2 Characters#232
jeromyjclark wants to merge 2 commits intozpanel:masterfrom
jeromyjclark:patch-1

Conversation

@jeromyjclark
Copy link
Copy Markdown

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