diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-07-16 10:24:10 -0700 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-07-16 10:24:10 -0700 |
commit | b46998e392bbf52fadc9c8e13271d911dff01cbe (patch) | |
tree | d6bc163f0664bc389673bf2425eacaf6fbeaa300 /modules/gallery/tests/Xss_Security_Test.php | |
parent | 49f445ce153f321688db970fbcbc9742183b9ed0 (diff) |
Update Xss_Security_Test to know about p::purify() and checkpoint the
golden file.
Diffstat (limited to 'modules/gallery/tests/Xss_Security_Test.php')
-rw-r--r-- | modules/gallery/tests/Xss_Security_Test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/gallery/tests/Xss_Security_Test.php b/modules/gallery/tests/Xss_Security_Test.php index e179482c..9bde11dc 100644 --- a/modules/gallery/tests/Xss_Security_Test.php +++ b/modules/gallery/tests/Xss_Security_Test.php @@ -36,7 +36,7 @@ class Xss_Security_Test extends Unit_Test_Case { // If we find a "(" after a "p::clean" then start counting levels of parens and assume // that we're inside a p::clean() call until we find the matching close paren. - if ($token[0] == "(" && $str == "p::clean") { + if ($token[0] == "(" && ($str == "p::clean" || $str == "p::purify")) { $in_p_clean = 1; } else if ($token[0] == "(" && $in_p_clean) { $in_p_clean++; |