Code

Fixed \ problem
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:35:01 +0000 (11:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:35:01 +0000 (11:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4582 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiTemplate.inc

index 88902daedb4437d196cc4743aeb63f950ee8f2ee..20497bfaa5583f9007b1f5c6ec1c84d40480ef35 100644 (file)
@@ -108,6 +108,7 @@ class faiTemplate extends plugin
 
         /* Fix slashes */
         $var = addslashes($var);
+
         $object[$attrs] = $var;
       }
     }
@@ -294,7 +295,7 @@ class faiTemplate extends plugin
           if(strlen($obj['description']) > 40){
             $obj['description'] = substr($obj['description'],0,40)."...";
           }
-          $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]";
+          $a_return[$obj['cn']]= $obj['cn']." [".stripslashes( $obj['description'] )."]";
         }else{
           $a_return[$obj['cn']]= $obj['cn'];
         }
@@ -402,7 +403,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;