engelsystem/includes/secure.php

26 lines
491 B
PHP
Raw Normal View History

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