zpanel / zpanelx

ZPanel is a web hosting control panel written in PHP for Windows and *NIX host OS's.
http://www.zpanelcp.com
Other
415 stars 296 forks source link

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

Open jeromyjclark opened 10 years ago

jeromyjclark commented 10 years ago

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.