View Single Post
  #1  
Old 2nd April 2013, 11:57
jmans jmans is offline
Junior Member
 
Join Date: Apr 2013
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Remoting Classes, bug ?

Hello,

There is a mistake in the class Remoting.
This prevents the "$ client-> dns_zone_get_id ($ session," igigoiejfe.org. ")"
not work!

Here is a patch which I hope to bring good solution.

Code:
cd /tmp
wget http://www.ispconfig.org/downloads/ISPConfig-3-stable.tar.gz
tar xvfz ISPConfig-3-stable.tar.gz

diff -ar -p /tmp/ispconfig3_install/interface/lib/classes/remoting.inc.php /usr/local/ispconfig/interface/lib/classes/remoting.inc.php
*** /tmp/ispconfig3_install/interface/lib/classes/remoting.inc.php      2012-12-04 14:36:35.000000000 +0100
--- /usr/local/ispconfig/interface/lib/classes/remoting.inc.php 2013-04-02 11:40:28.800116179 +0200
*************** class remoting {
*** 2142,2148 ****
              return false;
          }

!         $rec = $app->db->queryOneRecord("SELECT id FROM dns_soa WHERE origin like '".$origin.'%');
          if(isset($rec['id'])) {
              return $app->functions->intval($rec['id']);
          } else {
--- 2142,2148 ----
              return false;
          }

!         $rec = $app->db->queryOneRecord("SELECT id FROM dns_soa WHERE origin like '".$origin."'");
          if(isset($rec['id'])) {
              return $app->functions->intval($rec['id']);
          } else {
Reply With Quote
Sponsored Links