From: hickert Date: Mon, 4 Sep 2006 11:35:01 +0000 (+0000) Subject: Fixed \ problem X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=34360149cad1fe98e261992aa12a09eb8ab60c37;p=gosa.git Fixed \ problem git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4582 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiTemplate.inc b/plugins/admin/fai/class_faiTemplate.inc index 88902daed..20497bfaa 100644 --- a/plugins/admin/fai/class_faiTemplate.inc +++ b/plugins/admin/fai/class_faiTemplate.inc @@ -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;