r29200 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r29199‎ | r29200 | r29201 >
Date:00:58, 3 January 2008
Author:brion
Status:old
Tags:
Comment:
* (bug 12483) Transform '_' to ' ' in blacklist regexes for convenience
Modified paths:
  • /trunk/extensions/TitleBlacklist/TitleBlacklist.list.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TitleBlacklist/TitleBlacklist.list.php
@@ -181,6 +181,7 @@
182182 preg_match( '/^(.*?)(\s*<(.*)>)?$/', $line, $pockets );
183183 @list( $full, $regex, $null, $opts_str ) = $pockets;
184184 $regex = trim( $regex );
 185+ $regex = str_replace( '_', ' ', $regex ); // We'll be matching against text form
185186 $opts_str = trim( $opts_str );
186187 // Parse opts
187188 $opts = preg_split( '/\s*\|\s*/', $opts_str );

Status & tagging log