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

This commit is contained in:
Ralf Becker 2011-08-03 08:34:04 +00:00
parent 99b209ab49
commit ff4369d6b3

View File

@ -1,10 +1,9 @@
<?php <?php
$lang = $_GET['lang']; if (preg_match('/^[a-z0-9-]+$/i', $_REQUEST['lang'])) {
if (!$lang) {
$lang = $_REQUEST['lang']; $lang = $_REQUEST['lang'];
} }
if (!$lang) { else {
$lang = 'en'; $lang = 'en';
} }
setcookie('lang', $lang); setcookie('lang', $lang);