Index: trunk/phase3/includes/Title.php |
— | — | @@ -285,7 +285,7 @@ |
286 | 286 | */ |
287 | 287 | public static function newFromRedirect( $text ) { |
288 | 288 | $redir = MagicWord::get( 'redirect' ); |
289 | | - if( $redir->matchStart( $text ) ) { |
| 289 | + if( $redir->matchStart( trim($text) ) ) { |
290 | 290 | // Extract the first link and see if it's usable |
291 | 291 | $m = array(); |
292 | 292 | if( preg_match( '!\[{2}(.*?)(?:\||\]{2})!', $text, $m ) ) { |