Add dns only allows empty domain

Bug #524895 reported by Razvan AVRAMESCU
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Easy Hosting Control Panel for Ubuntu
Fix Released
Undecided
Razvan AVRAMESCU
Nominated for Trunk by Razvan AVRAMESCU

Bug Description

Can break apache2 service

Changed in ehcp:
status: New → Confirmed
assignee: nobody → Razvan AVRAMESCU (razvan-nrj)
Revision history for this message
Razvan AVRAMESCU (razvan-nrj) wrote :

Fix in classapp.php:

To: function addDnsOnlyDomain()

 } else {
+ if($domainname=='') $this->output.="<br>Domainname cannot be empty...<br>";
+ else {
  $paneluserinfo=$this->getPanelUserInfo();
  $sql="insert into ".$this->conf['domainstable']['tablename']." (reseller,panelusername,domainname,homedir,status,serverip) values ('".$this->activeuser."','".$this->activeuser."','$domainname','','".$this->status_active."','$serverip')";
  $success=$success && $this->executeQuery($sql);
  $success=$success && $this->addDaemonOp("syncdns",'','','','sync dns');
  $this->ok_err_text($success,'domain dnsonly add complete','failed to add domain ('.__FUNCTION__.')');
+ }
 }

Changed in ehcp:
status: Confirmed → Fix Committed
Changed in ehcp:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.