Skip to content

Commit

Permalink
xss: Fix possible vuln setting client lang pref
Browse files Browse the repository at this point in the history
  • Loading branch information
Jared Hancock committed Jan 12, 2015
1 parent b7e75b1 commit b38b3ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion client.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@
$thisclient = UserAuthenticationBackend::getUser();

if (isset($_GET['lang']) && $_GET['lang']) {
$_SESSION['client:lang'] = $_GET['lang'];
if (Internationalization::getLanguageInfo($_GET['lang']))
$_SESSION['client:lang'] = $_GET['lang'];
}

// Bootstrap gettext translations as early as possible, but after attempting
Expand Down

0 comments on commit b38b3ca

Please sign in to comment.