From: Jimmy Collins Date: Wed, 27 Sep 2006 18:24:08 +0000 (+0000) Subject: (bug 7059) 'anchorencode' colon function needs one more replace '+' -> '_' X-Git-Tag: 1.31.0-rc.0~55706 X-Git-Url: http://git.cyclocoop.org/%24image?a=commitdiff_plain;h=ae0e4815793a813e83bb68f72d6d8f4c8536370e;p=lhc%2Fweb%2Fwiklou.git (bug 7059) 'anchorencode' colon function needs one more replace '+' -> '_' --- diff --git a/includes/CoreParserFunctions.php b/includes/CoreParserFunctions.php index 8759e70d11..326608e0a6 100644 --- a/includes/CoreParserFunctions.php +++ b/includes/CoreParserFunctions.php @@ -164,7 +164,7 @@ class CoreParserFunctions { } function anchorencode( $parser, $text ) { - return str_replace( '%', '.', urlencode( $text ) ); + return str_replace( '%', '.', str_replace('+', '_', urlencode( $text ) ) ); } }