fix problem "found" on www.autosectools.com>

This commit is contained in:
Ralf Becker 2011-08-03 08:32:15 +00:00
parent 5889da371f
commit b5ed1b7eb9

View File

@ -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);