2008-09-10 05:42:44 +02:00
|
|
|
<?php
|
2011-06-01 12:13:39 +02:00
|
|
|
if($debug)
|
|
|
|
echo "secure.php START<br />\n";
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
foreach ($_GET as $k => $v) {
|
|
|
|
$v = htmlentities($v, ENT_QUOTES);
|
|
|
|
preg_replace('/([\'"`\'])/', '', $v);
|
|
|
|
$_GET[$k] = $v;
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
if($debug)
|
|
|
|
echo "GET $k=\"$v\"<br />";
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($_POST as $k => $v) {
|
|
|
|
$v = htmlentities($v, ENT_QUOTES);
|
|
|
|
preg_replace('/([\'"`\'])/', '', $v);
|
|
|
|
$_POST[$k] = $v;
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
if($debug)
|
|
|
|
echo "POST $k=\"$v\"<br />";
|
|
|
|
}
|
2008-09-10 05:42:44 +02:00
|
|
|
|
2011-06-01 12:13:39 +02:00
|
|
|
if($debug)
|
|
|
|
echo "secure.php END<br />\n";
|
2008-09-10 05:42:44 +02:00
|
|
|
?>
|