Add dns only allows empty domain
Bug #524895 reported by
Razvan AVRAMESCU
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Easy Hosting Control Panel for Ubuntu |
Fix Released
|
Undecided
|
Razvan AVRAMESCU | ||
Bug Description
Can break apache2 service
Changed in ehcp: | |
status: | New → Confirmed |
assignee: | nobody → Razvan AVRAMESCU (razvan-nrj) |
Changed in ehcp: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Fix in classapp.php:
To: function addDnsOnlyDomain()
} else { output. ="<br>Domainnam e cannot be empty...<br>"; o=$this- >getPanelUserIn fo(); >conf[' domainstable' ]['tablename' ]." (reseller, panelusername, domainname, homedir, status, serverip) values ('".$this- >activeuser. "','".$ this->activeuse r."','$ domainname' ,'','". $this-> status_ active. "','$serverip' )"; executeQuery( $sql); addDaemonOp( "syncdns" ,'','', '','sync dns'); >ok_err_ text($success, 'domain dnsonly add complete','failed to add domain ('.__FUNCTION_ _.')');
+ if($domainname=='') $this->
+ else {
$paneluserinf
$sql="insert into ".$this-
$success=$success && $this->
$success=$success && $this->
$this-
+ }
}