diff options
author | friendica <info@friendica.com> | 2012-07-18 03:59:10 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-07-18 03:59:10 -0700 |
commit | 22cf19e174bcee88b44968f2773d1bad2da2b54d (patch) | |
tree | f4e01db6f73754418438b020c2327e18c256653c /lib/htmlpurifier/smoketests/common.php | |
parent | 7a40f4354b32809af3d0cfd6e3af0eda02ab0e0a (diff) | |
download | volse-hubzilla-22cf19e174bcee88b44968f2773d1bad2da2b54d.tar.gz volse-hubzilla-22cf19e174bcee88b44968f2773d1bad2da2b54d.tar.bz2 volse-hubzilla-22cf19e174bcee88b44968f2773d1bad2da2b54d.zip |
bad sync with github windows client
Diffstat (limited to 'lib/htmlpurifier/smoketests/common.php')
-rw-r--r-- | lib/htmlpurifier/smoketests/common.php | 37 |
1 files changed, 0 insertions, 37 deletions
diff --git a/lib/htmlpurifier/smoketests/common.php b/lib/htmlpurifier/smoketests/common.php deleted file mode 100644 index c4e5eb388..000000000 --- a/lib/htmlpurifier/smoketests/common.php +++ /dev/null @@ -1,37 +0,0 @@ -<?php - -header('Content-type: text/html; charset=UTF-8'); - -if (!isset($_GET['standalone'])) { - require_once '../library/HTMLPurifier.auto.php'; -} else { - require_once '../library/HTMLPurifier.standalone.php'; -} -error_reporting(E_ALL); - -function escapeHTML($string) { - $string = HTMLPurifier_Encoder::cleanUTF8($string); - $string = htmlspecialchars($string, ENT_COMPAT, 'UTF-8'); - return $string; -} - -if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) { - function fix_magic_quotes(&$array) { - foreach ($array as $k => $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 |