Code

Updated DAK keyring entry encoding:
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Jun 2008 10:03:04 +0000 (10:03 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 20 Jun 2008 10:03:04 +0000 (10:03 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11395 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dak/addons/dak/class_dakkeyring.inc

index 9901f34d3fb4f4c42f0ccbc67b9f65b544684559..4ecd34188730b49db54371f4a50e09f8ffde1b6c 100644 (file)
@@ -160,7 +160,7 @@ class dakkeyring extends plugin
           $f1 = array("string" => "","attach" => $s1);
           $f2 = array("string" => "","attach" => $s2);
           $f3 = array("string" => "","attach" => $s3);
-          $f4 = array("string" => xmlentities(utf8_decode($val)), "attach" => $s4);
+          $f4 = array("string" => htmlentities(utf8_decode($val),ENT_QUOTES,"UTF-8"), "attach" => $s4);
           $f5 = array("string" => "","attach" => $s5);
 
           if($first){
@@ -169,7 +169,7 @@ class dakkeyring extends plugin
             $f1 = array("string" => $key_id       ,"attach" => $s1);
             $f2 = array("string" => $length       ,"attach" => $s2);
             $f3 = array("string" => $status       ,"attach" => $s3);
-            $f4 = array("string" => xmlentities(utf8_decode($val)), "attach" => $s4);
+            $f4 = array("string" => htmlentities(utf8_decode($val),ENT_QUOTES,"UTF-8"), "attach" => $s4);
             $f5 = array("string" => $actions      ,"attach" => $s5);
           }
           $divlist->AddEntry(array($f0,$f1,$f2,$f3,$f4,$f5));
@@ -186,7 +186,7 @@ class dakkeyring extends plugin
         $f1 = array("string" => $key_id,       "attach" => $s1);
         $f2 = array("string" => $length,       "attach" => $s2);
         $f3 = array("string" => $status,        "attach" => $s3);
-        $f4 = array("string" => xmlentities(utf8_decode($entry['UID'][0])), "attach" => $s4);
+        $f4 = array("string" => htmlentities(utf8_decode($entry['UID'][0]),ENT_QUOTES,"UTF-8"), "attach" => $s4);
         $f5 = array("string" => $actions,"attach" => $s5);
         $divlist->AddEntry(array($f0,$f1,$f2,$f3,$f4,$f5));