Code

Fixed Daemon query
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Mar 2008 15:42:36 +0000 (15:42 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 19 Mar 2008 15:42:36 +0000 (15:42 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9947 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_socketClient.inc

index cda5e68d314ea224030ebdede61695a3c88aa834..93e49de40190e2da5eb36409d2c88536157d0ac7 100644 (file)
@@ -156,7 +156,11 @@ class Socket_Client
         $str .= $data;
       } else {
         if(strlen($str) != 0){
-          break;
+          
+          /* We got <xml> but </xml> is still missing, keep on reading */
+          if(preg_match("/<\/xml>/",$this->decrypt($str))){
+            break;
+          }
         }
       }
       if((microtime(TRUE) - $start) > $this->timeout ){