Set language using a POST request

Fixes FS#39027.

Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
Lukas Fleischer 2014-05-13 14:19:55 +02:00
parent 33bdc023d6
commit bc93e68dc7
2 changed files with 3 additions and 3 deletions

View file

@ -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'])) {