Code

fixed addressbook
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Dec 2005 12:25:55 +0000 (12:25 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 20 Dec 2005 12:25:55 +0000 (12:25 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@2359 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/addressbook/address_info.tpl
plugins/addons/addressbook/class_addressbook.inc

index 673dd90f0cb4acf47b74627d50043efed3959f0a..d6cf405d5aec0cc51a73b64eaeff149e32983c62 100644 (file)
@@ -40,7 +40,7 @@
    <td>{t}Mobile{/t}</td><td><i>{$info_mobile}</i></td>
   </tr>
   <tr>
-   <td>{t}Email{/t}</td><td><i><a href="mailto:{$info_givenName} {$info_sn} <{$info_mail}>">{$info_mail}</a></i></td>
+   <td>{t}Email{/t}</td><td><i><a href="mailto:{$info_givenName}%20{$info_sn}%20%3C{$info_mail}%3E">{$info_mail}</a></i></td>
   </tr>
  </table>
 
index 40b1876ccf77422d255441f7a4fbd19dd7d0649a..4ffa68c758c149bdf7e67735aad3c857d35b81b9 100644 (file)
@@ -71,7 +71,6 @@ class addressbook extends plugin
                plugin::execute();
 
     $smarty= get_smarty();
-
     foreach($this->attributes as $attr){
       $smarty->assign($attr."ACL",chkacl($this->acl,$attr));
     }
@@ -382,7 +381,7 @@ class addressbook extends plugin
                                                $dest= sprintf(_("Send mail to %s"), $attrs['mail'][0]);
                                                $this->telephone_list[$attrs['sn'][0].$attrs['dn']].=
 
-                                                       "<a href=\"mailto:".$attrs['mail'][0]."\">".
+                                                       "<a href=\"mailto:".htmlentities($attrs['mail'][0])."\">".
                                                        "<img  align=\"top\" border=0 src=\"images/mailto.png\" ".
                                                        "alt=\"vcf\" title=\"$dest\"></a>";
                                        }