admin
doz
html2pdf_v4.03
htmlpurifier-4.10.0
art
benchmarks
configdoc
docs
extras
library
maintenance
plugins
smoketests
basic
test-schema
all.php
allConfigForm.php
attrTransform.php
attrTransform.xml
basic.php
cacheConfig.php
common.php
configForm.php
dataScheme.php
extractStyleBlocks.php
img.png
innerHTML.html
innerHTML.js
preserveYouTube.php
printDefinition.php
variableWidthAttack.php
xssAttacks.php
xssAttacks.xml
tests
.gitattributes
.gitignore
.travis.yml
CREDITS
Doxyfile
INSTALL
INSTALL.fr.utf8
LICENSE
NEWS
README.md
TODO
VERSION
WHATSNEW
WYSIWYG
composer.json
phpdoc.ini
images
prints
prints3
stud
Kennwortwechsel.php
hauptframe.php
htmlpurifier-4.10.0.zip
index.php
index_alt.php
index_db.php
index_frame.htm
index_ldap.php
login.php
logout.php
menuframe.htm
styles_pc.css
testpdf.php
topframe.php
40 lines
1003 B
PHP
Executable File
40 lines
1003 B
PHP
Executable File
<?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
|