fixed problem "found" on www.autosectools.com

This commit is contained in:
Ralf Becker 2011-08-03 08:29:53 +00:00
parent 1043425e36
commit 04e032e7af

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