Index: trunk/extensions/ReplaceText/SpecialReplaceText.php |
— | — | @@ -511,6 +511,8 @@ |
512 | 512 | |
513 | 513 | $tables = array( 'page' ); |
514 | 514 | $vars = array( 'page_title', 'page_namespace' ); |
| 515 | + |
| 516 | + $str = str_replace( ' ', '_', $str ); |
515 | 517 | if ( $use_regex ) { |
516 | 518 | $comparisonCond = 'page_title REGEXP ' . $dbr->addQuotes( $str ); |
517 | 519 | } else { |