Index: trunk/extensions/Interwiki/Interwiki_body.php |
— | — | @@ -181,7 +181,8 @@ |
182 | 182 | global $wgRequest, $wgOut; |
183 | 183 | $prefix = $wgRequest->getVal( 'wpInterwikiPrefix' ); |
184 | 184 | $do = $wgRequest->getVal( 'wpInterwikiAction' ); |
185 | | - if( preg_match( '/[\s:&=]/', $prefix ) ) { |
| 185 | + // show an error if the prefix is invalid (only when adding one) |
| 186 | + if( preg_match( '/[\s:&=]/', $prefix ) && $do == 'add' ) { |
186 | 187 | $this->error( 'interwiki-badprefix', htmlspecialchars( $prefix ) ); |
187 | 188 | $this->showForm( $do ); |
188 | 189 | return; |
Index: trunk/extensions/Interwiki/Interwiki.php |
— | — | @@ -26,7 +26,7 @@ |
27 | 27 | 'path' => __FILE__, |
28 | 28 | 'name' => 'SpecialInterwiki', |
29 | 29 | 'author' => array( 'Stephanie Amanda Stevens', 'SPQRobin', '...' ), |
30 | | - 'version' => '1.3.1', |
| 30 | + 'version' => '1.3.2', |
31 | 31 | 'url' => 'http://www.mediawiki.org/wiki/Extension:SpecialInterwiki', |
32 | 32 | 'descriptionmsg' => 'interwiki-desc', |
33 | 33 | ); |