r16675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r16674‎ | r16675 | r16676 >
Date:18:24, 27 September 2006
Author:collinj
Status:old
Tags:
Comment:
(bug 7059) 'anchorencode' colon function needs one more replace '+' -> '_'
Modified paths:
  • /trunk/phase3/includes/CoreParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/CoreParserFunctions.php
@@ -164,7 +164,7 @@
165165 }
166166
167167 function anchorencode( $parser, $text ) {
168 - return str_replace( '%', '.', urlencode( $text ) );
 168+ return str_replace( '%', '.', str_replace('+', '_', urlencode( $text ) ) );
169169 }
170170
171171 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r16279* (bug 7059) Introduce "anchorencode" colon functionrobchurch07:51, 30 August 2006