Code

Updated setup to use xmlentities
[gosa.git] / gosa-core / include / class_gosaSupportDaemon.inc
index de02dd55b3460e2a3537795290be0e39785e8305..b6eff67e502b5a1766dfa5d08a4a963bbf652796 100644 (file)
@@ -76,7 +76,7 @@ class gosaSupportDaemon
       }else{
         $this->set_error($this->o_sock->get_error());
         $this->disconnect();
-        new log("debug","gosaSupportDaemon::connect()", "Could not connect to server.", array(),$this->get_error());
+        new log("debug","gosaSupportDaemon::connect()", "Cannot connect to si-server", array(),$this->get_error());
       }
     }else{
       $this->set_error(msgPool::cmdnotfound("GOSA_SI",_("GOsa support daemon")));
@@ -158,10 +158,16 @@ class gosaSupportDaemon
         "<where><clause><phrase><distribution>".$release."</distribution></phrase></clause></where>
         </xml>";
     }else{
+         $xml_msg = "<xml><header>gosa_query_packages_list</header><target>GOSA</target><source>GOSA</source>".
+        "<select> ".trim($attr,", ")." </select>".
+        "<where><clause>
+            <connector>AND</connector>
+            <phrase><distribution>".$release."</distribution></phrase>
+            <phrase><package>".$package."</package></phrase>
+            </clause></where>
+        </xml>";
     }
 
-    echo htmlentities($xml_msg);
-
     if($this->connect()){
       $this->o_sock->write($xml_msg);
       $str = trim($this->o_sock->read());