summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-06-13 21:33:51 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-06-13 21:33:51 +0200
commitb120b664706824c7dda6a9a869d7f97458a8971b (patch)
tree9bcbca4c2a6fec221b343506fadd10718c45bb85 /inc/parser
parent55b2b31ba4b8953e4396fc55a1176293671bc638 (diff)
downloadrpg-b120b664706824c7dda6a9a869d7f97458a8971b.tar.gz
rpg-b120b664706824c7dda6a9a869d7f97458a8971b.tar.bz2
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
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php4
1 files changed, 2 insertions, 2 deletions
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 ) {