From: Brion Vibber Date: Sun, 8 Aug 2004 01:38:31 +0000 (+0000) Subject: Further move fix: if someone has made a piped redirect link, don't try to read the... X-Git-Tag: 1.5.0alpha1~2474 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22brouteur%22%2C%28%24id_rubrique%20?a=commitdiff_plain;h=eba8d5054329a1491f149c2003f0c383e42bddb0;p=lhc%2Fweb%2Fwiklou.git Further move fix: if someone has made a piped redirect link, don't try to read the piped title as part of the target name. --- diff --git a/includes/Title.php b/includes/Title.php index 67c8facda0..7c8255d62f 100644 --- a/includes/Title.php +++ b/includes/Title.php @@ -1176,7 +1176,7 @@ class Title { } # Does the redirect point to the source? - if ( preg_match( "/\\[\\[\\s*([^\\]]*)]]/", $obj->cur_text, $m ) ) { + if ( preg_match( "/\\[\\[\\s*([^\\]\\|]*)]]/", $obj->cur_text, $m ) ) { $redirTitle = Title::newFromText( $m[1] ); if( !is_object( $redirTitle ) || $redirTitle->getPrefixedDBkey() != $this->getPrefixedDBkey() ) {