mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-21 23:43:17 +01:00
fix problem "found" on www.autosectools.com>
This commit is contained in:
parent
99b209ab49
commit
ff4369d6b3
@ -1,10 +1,9 @@
|
||||
<?php
|
||||
|
||||
$lang = $_GET['lang'];
|
||||
if (!$lang) {
|
||||
if (preg_match('/^[a-z0-9-]+$/i', $_REQUEST['lang'])) {
|
||||
$lang = $_REQUEST['lang'];
|
||||
}
|
||||
if (!$lang) {
|
||||
else {
|
||||
$lang = 'en';
|
||||
}
|
||||
setcookie('lang', $lang);
|
||||
|
Loading…
Reference in New Issue
Block a user