Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -182,11 +182,13 @@ |
183 | 183 | global $wgContLang, $wgUser; |
184 | 184 | $action = $this->getVal( 'Action' ); |
185 | 185 | $perferred = $wgContLang->getPreferredVariant( false ); |
186 | | - // Invalid titles |
187 | | - if( is_null($title) || $title->getDBkey() == '' ) { |
| 186 | + |
| 187 | + // Invalid titles. Bug 21776: The interwikis must redirect even if the page name is empty. |
| 188 | + if( is_null($title) || ( ($title->getDBkey() == '') && ($title->getInterwiki() == '') ) ) { |
188 | 189 | $title = SpecialPage::getTitleFor( 'Badtitle' ); |
189 | 190 | # Die now before we mess up $wgArticle and the skin stops working |
190 | 191 | throw new ErrorPageError( 'badtitle', 'badtitletext' ); |
| 192 | + |
191 | 193 | // Interwiki redirects |
192 | 194 | } else if( $title->getInterwiki() != '' ) { |
193 | 195 | if( $rdfrom = $request->getVal( 'rdfrom' ) ) { |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -669,6 +669,7 @@ |
670 | 670 | * (bug 21559) "logempty" message is now wrapped in a div with class |
671 | 671 | "mw-warning-logempty" when used in log extract |
672 | 672 | * (bug 20549) Parser tests were broken on SQLite backend |
| 673 | +* (bug 21776) Interwiki urls like http://en.wikibooks.org/wiki/cs: should give a redirect instead of a baderror. |
673 | 674 | |
674 | 675 | == API changes in 1.16 == |
675 | 676 | |