From b81a0b424056e40bafe28e2af42d7993e47c833d Mon Sep 17 00:00:00 2001 From: Robin Pepermans Date: Thu, 1 Dec 2011 20:23:04 +0000 Subject: [PATCH] (bug 32075) Always add lowercase interwikis. Patch by Vitaliy Filippov. --- Interwiki_body.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Interwiki_body.php b/Interwiki_body.php index 5f5bdac9..80de2194 100644 --- a/Interwiki_body.php +++ b/Interwiki_body.php @@ -167,6 +167,8 @@ class SpecialInterwiki extends SpecialPage { } function doSubmit() { + global $wgContLang; + $request = $this->getRequest(); $prefix = $request->getVal( 'wpInterwikiPrefix' ); $do = $request->getVal( 'wpInterwikiAction' ); @@ -192,8 +194,9 @@ class SpecialInterwiki extends SpecialPage { $log->addEntry( 'iw_delete', $selfTitle, $reason, array( $prefix ) ); } break; - case 'edit': case 'add': + $prefix = $wgContLang->lc( $prefix ); + case 'edit': $theurl = $request->getVal( 'wpInterwikiURL' ); $local = $request->getCheck( 'wpInterwikiLocal' ) ? 1 : 0; $trans = $request->getCheck( 'wpInterwikiTrans' ) ? 1 : 0;