From 866c47ec603595e8fe67da5f0e5d162a70b1f7b4 Mon Sep 17 00:00:00 2001 From: cookie Date: Sun, 6 Nov 2005 17:14:25 +0000 Subject: move files git-svn-id: svn://svn.cccv.de/engel-system@20 29ba0400-6e00-0410-a75a-ca02368028f8 --- www-ssl/inc/secure.php | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100755 www-ssl/inc/secure.php (limited to 'www-ssl/inc/secure.php') diff --git a/www-ssl/inc/secure.php b/www-ssl/inc/secure.php new file mode 100755 index 00000000..786c18a6 --- /dev/null +++ b/www-ssl/inc/secure.php @@ -0,0 +1,32 @@ + $v) +{ + $v = htmlspecialchars($v); + $v = mysql_escape_string($v); +// $v = htmlentities($v); + if (preg_match('/([\"`])/', $v, $match)) + { + print "sorry get has illegal char '$match[1]'"; + exit; + } + $_GET[$k] = $v; + echo "GET $k=\"$v\"
"; +} + +foreach ($_POST as $k => $v) +{ + $v = htmlspecialchars($v); + $v = mysql_escape_string($v); +// $v = htmlentities($v); + if (preg_match('/([\'"`\'])/', $v, $match)) { + print "sorry post has illegal char '$match[1]'"; + exit; + } + $_POST[$k] = $v; + echo "POST $k=\"$v\"
"; +} + +?> -- cgit v1.2.3-54-g00ecf