* Added RFC to list of strings to escape
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:38:18 +0000 (13:38 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Sat, 8 Jul 2006 13:38:18 +0000 (13:38 +0000)
includes/GlobalFunctions.php

index e203348..c8a1a60 100644 (file)
@@ -867,8 +867,8 @@ function wfCheckLimits( $deflimit = 50, $optionname = 'rclimit' ) {
  */
 function wfEscapeWikiText( $text ) {
        $text = str_replace(
-               array( '[',             '|',      '\'',    'ISBN '        , '://'         , "\n=", '{{' ),
-               array( '&#91;', '&#124;', '&#39;', 'ISBN&#32;', '&#58;//' , "\n&#61;", '&#123;&#123;' ),
+               array( '[',     '|',      '\'',    'ISBN ',     'RFC ',     '://',     "\n=",     '{{' ),
+               array( '&#91;', '&#124;', '&#39;', 'ISBN&#32;', 'RFC&#32;', '&#58;//', "\n&#61;", '&#123;&#123;' ),
                htmlspecialchars($text) );
        return $text;
 }