FIx #yogosha5695

This commit is contained in:
Laurent Destailleur 2021-03-22 19:19:18 +01:00
parent 146706bafa
commit 3f07317f30
2 changed files with 2 additions and 2 deletions

View File

@ -33,7 +33,7 @@ global $langs;
$err = 0;
$setuplang = GETPOST("selectlang", '', 3) ?GETPOST("selectlang", '', 3) : (isset($_GET["lang"]) ? $_GET["lang"] : 'auto');
$setuplang = GETPOST("selectlang", '', 3) ? GETPOST("selectlang", '', 3) : (GETPOST('lang', 'alpha', 1) ? GETPOST('lang', 'alpha', 1) : 'auto');
$langs->setDefaultLang($setuplang);
$langs->loadLangs(array("install", "errors"));

View File

@ -518,7 +518,7 @@ function pFooter($nonext = 0, $setuplang = '', $jscheckfunction = '', $withpleas
}
}
if ($setuplang) {
print '<input type="hidden" name="selectlang" value="'.$setuplang.'">';
print '<input type="hidden" name="selectlang" value="'.dol_escape_htmltag($setuplang).'">';
}
print '</form>'."\n";