blob: 1d1a9e46e281b4834226584a1e11a0515027ebd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
if($debug)
echo "secure.php START<br />\n";
foreach ($_GET as $k => $v) {
$v = htmlentities($v, ENT_QUOTES);
preg_replace('/([\'"`\'])/', '', $v);
$_GET[$k] = $v;
if($debug)
echo "GET $k=\"$v\"<br />";
}
foreach ($_POST as $k => $v) {
$v = htmlentities($v, ENT_QUOTES);
preg_replace('/([\'"`\'])/', '', $v);
$_POST[$k] = $v;
if($debug)
echo "POST $k=\"$v\"<br />";
}
if($debug)
echo "secure.php END<br />\n";
?>
|