header.php: Do not lowercase language selection entries

Commit 091c2b5f55 introduced lower casing
to the language drop-down list. Revert this and use htmlspecialchars()
to escape language entries instead.

Addresses FS#32453.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2012-11-04 16:49:47 +01:00
parent 406686bc22
commit 4e4db4133b

View file

@ -37,9 +37,9 @@
reset($SUPPORTED_LANGS);
foreach ($SUPPORTED_LANGS as $lang => $lang_name) {
print '<option value="' . strtolower($lang) . '"' .
print '<option value="' . htmlspecialchars($lang, ENT_QUOTES) . '"' .
($lang == $LANG ? ' selected="selected"' : '') .
'>' . strtolower($lang) . "</option>\n";
'>' . htmlspecialchars($lang) . "</option>\n";
}
?>
</select>