* (bug 2683) Really fix apostrophe escaping for toolbox tips
authorBrion Vibber <brion@users.mediawiki.org>
Sun, 3 Jul 2005 18:14:20 +0000 (18:14 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Sun, 3 Jul 2005 18:14:20 +0000 (18:14 +0000)
RELEASE-NOTES
includes/GlobalFunctions.php
skins/common/wikibits.js

index 70b4da3..427ca70 100644 (file)
@@ -458,6 +458,8 @@ of MediaWiki:Newpagetext) to &action=edit, if page is new.
 * (bug 2648) Rename namespaces in Afrikaanse
 * Special:Booksources checks if custom list page exists before using it
 * (bug 1170) Fixed linktrail for da: and ru:
+* (bug 2683) Really fix apostrophe escaping for toolbox tips
+
 
 === Caveats ===
 
index 1af8091..bc5e2a9 100644 (file)
@@ -643,7 +643,7 @@ function wfEscapeJsString( $string ) {
        $pairs = array(
                "\\" => "\\\\",
                "\"" => "\\\"",
-               "\'" => "\\\'",
+               '\'' => '\\\'',
                "\n" => "\\n",
                "\r" => "\\r",
                
index 74483e4..8726e64 100644 (file)
@@ -306,7 +306,7 @@ function addInfobox(infoText,text_alert) {
 
 function escapeQuotes(text) {
        var re=new RegExp("'","g");
-       text=text.replace(re,"\\'");
+       text=text.replace(re,"&#39;");
        re=new RegExp('"',"g");
        text=text.replace(re,'&quot;');
        re=new RegExp("\\n","g");