Code

Added fix to display description in Hook/Script overview correctly.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:42:38 +0000 (11:42 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 4 Sep 2006 11:42:38 +0000 (11:42 +0000)
\ was displayed as \\

git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@4584 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/admin/fai/class_faiHook.inc
plugins/admin/fai/class_faiScript.inc

index f0c56572ec1cc4a5af199b246d3fa8ef4049d3a0..a190d28f3abd4b986c4f396832c71f54df9d2e50 100644 (file)
@@ -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'];
           }
index f93ac0baa4f880c0bb46c7f89f19094acc0a59cb..0dd80502490de9cce13105d80d2ac11206ff77fe 100644 (file)
@@ -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'];
           }