Code

Fixed addressbook url encoding.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 07:59:30 +0000 (07:59 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 07:59:30 +0000 (07:59 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7500 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc

index 552b3de9faf9990b6422b16f730fd3de12013333..feb499a31dc66a151043189e762b51b423ad25a9 100644 (file)
@@ -429,7 +429,14 @@ class addressbook extends plugin
   
           $this->telephone_list[$attrs['sn'][0].$attrs['dn']]=
 
-            "<td class=\"phonelist\" title=\"".$attrs['sn'][0].", ".$attrs['givenName'][0]."\" onClick='location.href=\"main.php?plug=".validate($_GET['plug'])."&amp;start=".validate($_GET['start'])."&amp;show=".base64_encode($attrs['dn'])."\"'><a style='vertical-align:middle;' href=\"main.php?plug=".validate($_GET['plug'])."&amp;start=".validate($_GET['start'])."&amp;show=".base64_encode($attrs['dn'])."\">".$attrs['sn'][0].", ".$attrs['givenName'][0].
+            "<td class=\"phonelist\" title=\"".$attrs['sn'][0].", ".$attrs['givenName'][0].
+              "\"onClick='location.href=\"main.php?plug=".validate($_GET['plug']).
+                          "&amp;start=".validate($_GET['start']).
+                          "&amp;show=".urlencode(base64_encode($attrs['dn']))."\"'>
+              <a style='vertical-align:middle;' href=\"main.php?plug=".validate($_GET['plug']).
+                          "&amp;start=".validate($_GET['start']).
+                          "&amp;show=".urlencode(base64_encode($attrs['dn']))."\">".
+               $attrs['sn'][0].", ".$attrs['givenName'][0].
             "</a>
             </td>
             <td class=\"phonelist\" title=\""._("Dial")." ".$attrs['telephoneNumber'][0]."\">