From: hickert Date: Mon, 4 Sep 2006 11:42:38 +0000 (+0000) Subject: Added fix to display description in Hook/Script overview correctly. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=75f0abdd90465c88d562f1c58cf72f3d9d876536;p=gosa.git Added fix to display description in Hook/Script overview correctly. \ was displayed as \\ git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4584 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/plugins/admin/fai/class_faiHook.inc b/plugins/admin/fai/class_faiHook.inc index f0c56572e..a190d28f3 100644 --- a/plugins/admin/fai/class_faiHook.inc +++ b/plugins/admin/fai/class_faiHook.inc @@ -315,14 +315,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 f93ac0baa..0dd805024 100644 --- a/plugins/admin/fai/class_faiScript.inc +++ b/plugins/admin/fai/class_faiScript.inc @@ -288,14 +288,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']; }