summaryrefslogtreecommitdiffstats
path: root/web/lib/translator.inc.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2014-05-13 14:19:55 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2014-05-13 14:19:55 +0200
commitbc93e68dc7ec5181e931816ae34f9cc6bceb1b90 (patch)
treeab3a367c54f1f9daf6c1cc79629ecdcc6c05bcca /web/lib/translator.inc.php
parent33bdc023d67f209d80b08211104612cbe511c7a3 (diff)
downloadaur-bc93e68dc7ec5181e931816ae34f9cc6bceb1b90.tar.gz
aur-bc93e68dc7ec5181e931816ae34f9cc6bceb1b90.tar.xz
Set language using a POST request
Fixes FS#39027. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/lib/translator.inc.php')
-rw-r--r--web/lib/translator.inc.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/web/lib/translator.inc.php b/web/lib/translator.inc.php
index 1070183f..5117b995 100644
--- a/web/lib/translator.inc.php
+++ b/web/lib/translator.inc.php
@@ -79,10 +79,10 @@ function set_lang() {
global $streamer, $l10n;
$update_cookie = 0;
- if (isset($_REQUEST['setlang'])) {
+ if (isset($_POST['setlang'])) {
# visitor is requesting a language change
#
- $LANG = $_REQUEST['setlang'];
+ $LANG = $_POST['setlang'];
$update_cookie = 1;
} elseif (isset($_COOKIE['AURLANG'])) {