From: Niklas Laxström Date: Fri, 23 Nov 2007 08:49:31 +0000 (+0000) Subject: * Always check for user input X-Git-Tag: 1.31.0-rc.0~50746 X-Git-Url: http://git.cyclocoop.org/%22.%24h.%22?a=commitdiff_plain;h=4a62e83ee45ded6bce7b1e1d20b93ea1f451fd8e;p=lhc%2Fweb%2Fwiklou.git * Always check for user input --- diff --git a/includes/SpecialUserlogin.php b/includes/SpecialUserlogin.php index 2c27292070..b4c4699fe7 100644 --- a/includes/SpecialUserlogin.php +++ b/includes/SpecialUserlogin.php @@ -826,7 +826,9 @@ class LoginForm { foreach( $langs as $lang ) { $lang = trim( $lang, '* ' ); $parts = explode( '|', $lang ); - $links[] = $this->makeLanguageSelectorLink( $parts[0], $parts[1] ); + if (count($parts) >= 2) { + $links[] = $this->makeLanguageSelectorLink( $parts[0], $parts[1] ); + } } return count( $links ) > 0 ? wfMsgHtml( 'loginlanguagelabel', implode( ' | ', $links ) ) : ''; } else {