mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-23 00:13:35 +01:00
fixed problem "found" on www.autosectools.com
This commit is contained in:
parent
1043425e36
commit
04e032e7af
@ -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