Skip to content
Snippets Groups Projects
Commit b38b3ca7 authored by Jared Hancock's avatar Jared Hancock
Browse files

xss: Fix possible vuln setting client lang pref

parent b7e75b1e
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,8 @@ $nav=null;
$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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment