(bug 7059) 'anchorencode' colon function needs one more replace '+' -> '_'
authorJimmy Collins <collinj@users.mediawiki.org>
Wed, 27 Sep 2006 18:24:08 +0000 (18:24 +0000)
committerJimmy Collins <collinj@users.mediawiki.org>
Wed, 27 Sep 2006 18:24:08 +0000 (18:24 +0000)
includes/CoreParserFunctions.php

index 8759e70..326608e 100644 (file)
@@ -164,7 +164,7 @@ class CoreParserFunctions {
        }
        
        function anchorencode( $parser, $text ) {
-               return str_replace( '%', '.', urlencode( $text ) );
+               return str_replace( '%', '.', str_replace('+', '_', urlencode( $text ) ) );
        }
        
 }