Code

Fixed slahes for fai Templates
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:37:58 +0000 (11:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:37:58 +0000 (11:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4583 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiTemplate.inc

index d6ba507e85b7167404bba551274b9f329a199b86..f20c357180a80f5d74fe312832a2c832ba0f19be 100644 (file)
@@ -108,6 +108,8 @@ class faiTemplate extends plugin
           $var = $ldap->get_attribute($object['dn'], $attrs,$r_array=0);
         }
 
+        $var = stripslashes($var);
+  
         $object[$attrs] = $var;
       }
     }
@@ -398,7 +400,7 @@ class faiTemplate extends plugin
         if(empty($obj[$attrs])){
           $obj[$attrs] = array();
         }
-        $tmp[$attrs] = $obj[$attrs];
+        $tmp[$attrs] = stripslashes($obj[$attrs]);
       }    
         
       $tmp['objectClass'] = $this->subClasses;