diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-11-04 16:49:47 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2012-11-04 16:49:47 +0100 |
commit | 4e4db4133bb7bdbc99d83934081b0315c461861a (patch) | |
tree | 63c6980abfbb2ffacb730e9a1d85a4cf45888457 /web/template | |
parent | 406686bc22f39342c0faf8c83e4a68d7321611ff (diff) | |
download | aur-4e4db4133bb7bdbc99d83934081b0315c461861a.tar.gz aur-4e4db4133bb7bdbc99d83934081b0315c461861a.tar.xz |
header.php: Do not lowercase language selection entries
Commit 091c2b5f5523773604699b914c19e6b02ce290bc 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>
Diffstat (limited to 'web/template')
-rw-r--r-- | web/template/header.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/header.php b/web/template/header.php index a60174b3..92cb2ff8 100644 --- a/web/template/header.php +++ b/web/template/header.php @@ -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> |