0
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2024-11-14 01:08:41 +00:00

Minor doc updates

git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1642 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
Edward Z. Yang 2008-04-03 21:40:37 +00:00
parent e78df4dc9f
commit 870a4029ec

View File

@ -124,7 +124,9 @@ function htmlpurifier_parse_args(&$AC, $aliases) {
} }
} else { } else {
foreach ($_GET as $o => $v) { foreach ($_GET as $o => $v) {
if (get_magic_quotes_gpc()) $v = stripslashes($v); if (function_exists('get_magic_quotes_gpc') && get_magic_quotes_gpc()) {
$v = stripslashes($v);
}
htmlpurifier_args($AC, $aliases, $o, $v); htmlpurifier_args($AC, $aliases, $o, $v);
} }
} }
@ -146,8 +148,7 @@ function htmlpurifier_args(&$AC, $aliases, $o, $v) {
} }
/** /**
* Adds a test-class; depending on the file's extension this may involve * Adds a test-class; we use file extension to determine which class to use.
* a regular UnitTestCase or a special PHPT test
*/ */
function htmlpurifier_add_test($test, $test_file, $only_phpt = false) { function htmlpurifier_add_test($test, $test_file, $only_phpt = false) {
switch (strrchr($test_file, ".")) { switch (strrchr($test_file, ".")) {