From b79285e286c567e281aa514de33e074f3887f110 Mon Sep 17 00:00:00 2001 From: andi Date: Wed, 9 Feb 2005 21:25:50 +0100 Subject: fix for hex mailencoding #131 darcs-hash:20050209202550-9977f-e46a700e21207fe598f98b1bc3c3ba3e249021d3.gz --- inc/format.php | 8 +++++--- 1 file 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 */ function format_link_build($link){ - //make sure the url is XHTML compliant - $link['url'] = str_replace('&','&',$link['url']); - $link['url'] = str_replace('&','&',$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('&','&',$link['url']); + } //remove double encodings in titles $link['title'] = str_replace('&','&',$link['title']); -- cgit v1.2.3