summaryrefslogtreecommitdiffstats
path: root/web
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-11-04 16:49:47 +0100
committerLukas Fleischer <archlinux@cryptocrack.de>2012-11-04 16:49:47 +0100
commit4e4db4133bb7bdbc99d83934081b0315c461861a (patch)
tree63c6980abfbb2ffacb730e9a1d85a4cf45888457 /web
parent406686bc22f39342c0faf8c83e4a68d7321611ff (diff)
downloadaurweb-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')
-rw-r--r--web/template/header.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/template/header.php b/web/template/header.php
index a60174b..92cb2ff 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>