Code

FAI variables can contains quotes now
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Oct 2005 12:37:47 +0000 (12:37 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Oct 2005 12:37:47 +0000 (12:37 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@1606 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiVariableEntry.inc

index 18f635f129a75534f3d717dae1bc9c0a3cabc97c..8ab02a2f5e387f5b30069cbc252b1467865ae359 100644 (file)
@@ -46,9 +46,9 @@ class faiVariableEntry extends plugin
      */
     foreach($this->attributes as $attrs){
       if(get_magic_quotes_gpc()){
-        $smarty->assign($attrs,stripslashes($this->$attrs));
+        $smarty->assign($attrs,htmlentities (stripslashes($this->$attrs)));
       }else{
-        $smarty->assign($attrs,($this->$attrs));
+        $smarty->assign($attrs,htmlentities (($this->$attrs)));
       }
     }
 
@@ -95,7 +95,7 @@ class faiVariableEntry extends plugin
     $tmp=array();
     foreach($this->attributes as $attrs){ 
       $attr = preg_replace("/^Object_/","",$attrs);
-      $tmp[$attr] = $this->$attrs;
+      $tmp[$attr] = stripslashes( $this->$attrs);
     }
 
     if(($this->orig_cn)&&($tmp['cn']!=$this->orig_cn)){