Index: trunk/extensions/Translate/MessageGroups.php |
— | — | @@ -884,6 +884,12 @@ |
885 | 885 | } |
886 | 886 | } elseif ( strpos( $id, 'page|' ) === 0 ) { |
887 | 887 | list( , $title ) = explode( '|', $id, 2 ); |
| 888 | + |
| 889 | + // Check first if it valid page title at all |
| 890 | + if ( !Title::newFromText( $title ) ) { |
| 891 | + return null; |
| 892 | + } |
| 893 | + |
888 | 894 | return new WikiPageMessageGroup( $id, $title ); |
889 | 895 | } else { |
890 | 896 | return null; |