Code

Fixed addressbook url encoding
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 08:01:34 +0000 (08:01 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Oct 2007 08:01:34 +0000 (08:01 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7501 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/class_addressbook.inc

index e7c97d1a80bd06e89cff08eeee0e08c248dd42a7..03c05d633f7d84a56e38fd4c9edfaba7ad4720a2 100644 (file)
@@ -363,7 +363,16 @@ 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]."\">