From: hickert Date: Mon, 4 Sep 2006 11:44:30 +0000 (+0000) Subject: dded fix to display description in Hook/Script overview correctly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2185c414da32d355c58d43e736d7b6b3d4cb403a;p=gosa.git dded fix to display description in Hook/Script overview correctly. \ was displayed as \\ git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@4585 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index 557bf0657..a8f07b177 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -313,14 +313,14 @@ class faiHook extends plugin if($obj['status'] != "delete"){ if($use_dns){ if((isset($obj['description']))&&(!empty($obj['description']))){ - $a_return[$obj['cn']]['name']= $obj['cn']." [".$obj['description']."]"; + $a_return[$obj['cn']]['name']= $obj['cn']." [".stripslashes($obj['description'])."]"; }else{ $a_return[$obj['cn']]['name']= $obj['cn']; } $a_return[$obj['cn']]['dn']= $obj['dn']; }else{ if((isset($obj['description']))&&(!empty($obj['description']))){ - $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]"; + $a_return[$obj['cn']]= $obj['cn']." [".stripslashes($obj['description'])."]"; }else{ $a_return[$obj['cn']]= $obj['cn']; } diff --git a/plugins/admin/fai/class_faiScript.inc b/plugins/admin/fai/class_faiScript.inc index 9e8a9770e..8807a6119 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -304,14 +304,14 @@ class faiScript extends plugin if($obj['status'] != "delete"){ if($use_dns){ if((isset($obj['description']))&&(!empty($obj['description']))){ - $a_return[$obj['cn']]['name']= $obj['cn']." [".$obj['description']."]"; + $a_return[$obj['cn']]['name']= $obj['cn']." [".stripslashes($obj['description'])."]"; }else{ $a_return[$obj['cn']]['name']= $obj['cn']; } $a_return[$obj['cn']]['dn']= $obj['dn']; }else{ if((isset($obj['description']))&&(!empty($obj['description']))){ - $a_return[$obj['cn']]= $obj['cn']." [".$obj['description']."]"; + $a_return[$obj['cn']]= $obj['cn']." [".stripslashes($obj['description'])."]"; }else{ $a_return[$obj['cn']]= $obj['cn']; }