From 7a40f4354b32809af3d0cfd6e3af0eda02ab0e0a Mon Sep 17 00:00:00 2001 From: friendica Date: Sat, 12 May 2012 17:57:41 -0700 Subject: some important stuff we'll need --- lib/htmlpurifier/smoketests/common.php | 37 ++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 lib/htmlpurifier/smoketests/common.php (limited to 'lib/htmlpurifier/smoketests/common.php') diff --git a/lib/htmlpurifier/smoketests/common.php b/lib/htmlpurifier/smoketests/common.php new file mode 100644 index 000000000..c4e5eb388 --- /dev/null +++ b/lib/htmlpurifier/smoketests/common.php @@ -0,0 +1,37 @@ + $val) { + if (!is_array($val)) { + $array[$k] = stripslashes($val); + } else { + fix_magic_quotes($array[$k]); + } + } + } + + fix_magic_quotes($_GET); + fix_magic_quotes($_POST); + fix_magic_quotes($_COOKIE); + fix_magic_quotes($_REQUEST); + fix_magic_quotes($_ENV); + fix_magic_quotes($_SERVER); +} + +// vim: et sw=4 sts=4 -- cgit v1.2.3