Code

Updated filtering again
[gosa.git] / plugins / admin / systems / class_terminalGeneric.inc
index aa593d854fde9d879826e411e02c15fec262416c..8f09b5a1782d29b253a43b03dec987e4139e7630 100644 (file)
@@ -67,7 +67,7 @@ class termgeneric extends plugin
     if(!isset($this->parent->by_object['ogroup'])){
       $ldap = $this->config->get_ldap_link();
       $ldap->cd ($this->config->current['BASE']);
-      $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".$this->dn."))",array("cn"));
+      $ldap->search("(&(objectClass=gotoWorkstationTemplate)(member=".LDAP::prepare4filter($this->dn)."))",array("cn"));
       $this->member_of_ogroup = $ldap->count() >= 1;
     }