Add dns only allows empty domain

Bug #524895 reported by Razvan AVRAMESCU on 2010-02-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Easy Hosting Control Panel for Ubuntu
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)
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  Edit
Everyone can see this information.

Other bug subscribers