From b120b664706824c7dda6a9a869d7f97458a8971b Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Wed, 13 Jun 2007 21:33:51 +0200 Subject: correct javascript escape for languagestring in windows share links FS#1147 This piece of code should be replaced by some unobstrusive code in the future darcs-hash:20070613193351-7ad00-ce797a00e945f902e2fb309b83ffca988c2fb7e6.gz --- inc/parser/xhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 02071ec6c..3efb542de 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -622,9 +622,9 @@ class Doku_Renderer_xhtml extends Doku_Renderer { $link['style'] = ''; //Display error on browsers other than IE $link['more'] = 'onclick="if(document.all == null){alert(\''. - $this->_xmlEntities($lang['nosmblinks'],ENT_QUOTES). + str_replace('\\\\n','\\n',addslashes($lang['nosmblinks'])). '\');}" onkeypress="if(document.all == null){alert(\''. - $this->_xmlEntities($lang['nosmblinks'],ENT_QUOTES).'\');}"'; + str_replace('\\\\n','\\n',addslashes($lang['nosmblinks'])).'\');}"'; $link['name'] = $this->_getLinkTitle($name, $url, $isImage); if ( !$isImage ) { -- cgit v1.2.3