From 8c12804991c564aafbb2508e473d7a915947d982 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 8 Oct 2006 09:40:29 +0200 Subject: fixed images in email links darcs-hash:20061008074029-7ad00-8457873dd8ad2f5a36dc8f44eca42a4378e61e93.gz --- inc/parser/xhtml.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index c56367f47..4e8927679 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -672,8 +672,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['style'] = ''; $link['more'] = ''; - //we just test for image here - we need to encode the title our self - $this->_getLinkTitle($name, $address, $isImage); + $name = $this->_getLinkTitle($name, $address, $isImage); if ( !$isImage ) { $link['class']='mail JSnocheck'; } else { @@ -683,11 +682,13 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $address = $this->_xmlEntities($address); $address = obfuscate($address); $title = $address; + if(empty($name)){ $name = $address; - }else{ - $name = $this->_xmlEntities($name); } +#elseif($isImage{ +# $name = $this->_xmlEntities($name); +# } if($conf['mailguard'] == 'visible') $address = rawurlencode($address); -- cgit v1.2.3