From 870a4029ec3d6aa65c8c62ecf5b6b9a47a9e9e4a Mon Sep 17 00:00:00 2001 From: "Edward Z. Yang" Date: Thu, 3 Apr 2008 21:40:37 +0000 Subject: [PATCH] Minor doc updates git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1642 48356398-32a2-884e-a903-53898d9a118a --- tests/common.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tests/common.php b/tests/common.php index 773761c9..05192455 100644 --- a/tests/common.php +++ b/tests/common.php @@ -124,7 +124,9 @@ function htmlpurifier_parse_args(&$AC, $aliases) { } } else { 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); } } @@ -146,8 +148,7 @@ function htmlpurifier_args(&$AC, $aliases, $o, $v) { } /** - * Adds a test-class; depending on the file's extension this may involve - * a regular UnitTestCase or a special PHPT test + * Adds a test-class; we use file extension to determine which class to use. */ function htmlpurifier_add_test($test, $test_file, $only_phpt = false) { switch (strrchr($test_file, ".")) { -- 2.11.4.GIT