diff options
author | andi <andi@splitbrain.org> | 2005-02-09 21:25:50 +0100 |
---|---|---|
committer | andi <andi@splitbrain.org> | 2005-02-09 21:25:50 +0100 |
commit | b79285e286c567e281aa514de33e074f3887f110 (patch) | |
tree | 12ad2fd3a426e9c2770f39bba988e07b9273c61f | |
parent | 9195d85f90906629eac71594c1d2fe0485ca03e0 (diff) | |
download | rpg-b79285e286c567e281aa514de33e074f3887f110.tar.gz rpg-b79285e286c567e281aa514de33e074f3887f110.tar.bz2 |
fix for hex mailencoding #131
darcs-hash:20050209202550-9977f-e46a700e21207fe598f98b1bc3c3ba3e249021d3.gz
-rw-r--r-- | inc/format.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/inc/format.php b/inc/format.php index cf9c7c45d..44d39e22f 100644 --- a/inc/format.php +++ b/inc/format.php @@ -17,9 +17,11 @@ * @author Andreas Gohr <andi@splitbrain.org> */ function format_link_build($link){ - //make sure the url is XHTML compliant - $link['url'] = str_replace('&','&',$link['url']); - $link['url'] = str_replace('&amp;','&',$link['url']); + //make sure the url is XHTML compliant (skip mailto) + if(substr($link['url'],0,7) != 'mailto:'){ + $link['url'] = str_replace('&','&',$link['url']); + $link['url'] = str_replace('&amp;','&',$link['url']); + } //remove double encodings in titles $link['title'] = str_replace('&amp;','&',$link['title']); |