Use POST instead of GET #13

Merged
miraty merged 6 commits from post into main 2021-10-19 16:41:34 +02:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 70fe23d053 - Show all commits

View File

@ -11,7 +11,7 @@ define("DEFAULT_MAINCOLOR", "000000");
$libreqrVersion = "1.3.0";
// Defines the locale to be used
if ($forceLocale == false) {
if ($forceLocale == false AND isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])) {
$clientLocales = $_SERVER['HTTP_ACCEPT_LANGUAGE'];
$clientLocales = preg_replace("#[A-Z0-9]|q=|;|-|\.#", "", $clientLocales);
$clientLocales = explode(',', $clientLocales);