Code

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

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

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

index 557bf0657f3d52675b1b52c986e75a2f97d70646..a8f07b177898ca19b874e5edebd2913b440bcb91 100644 (file)
@@ -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'];
           }
index 9e8a9770e48aabfd1aea1e4d3d5f24215ddfc51a..8807a6119e68bbda7828de8068c83bbf3cc92434 100644 (file)
@@ -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'];
           }