From a049de28ace48a3970371caf24d7c389d8d93cd7 Mon Sep 17 00:00:00 2001 From: Bharat Mediratta Date: Sun, 31 May 2009 00:13:28 -0700 Subject: Update the clean/dirty format, check all ffiles instead of just one (which was for debugging) --- modules/gallery/tests/Xss_Security_Test.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'modules/gallery/tests/Xss_Security_Test.php') diff --git a/modules/gallery/tests/Xss_Security_Test.php b/modules/gallery/tests/Xss_Security_Test.php index 22c4a767..8bee8c42 100644 --- a/modules/gallery/tests/Xss_Security_Test.php +++ b/modules/gallery/tests/Xss_Security_Test.php @@ -50,8 +50,7 @@ class Xss_Security_Test extends Unit_Test_Case { } public function find_unescaped_variables_in_views_test() { - // foreach (glob("*/*/views/*.php") as $view) { - foreach (array("modules/search/views/search.html.php") as $view) { + foreach (glob("*/*/views/*.php") as $view) { $expr = null; $line = null; $level = 0; @@ -125,8 +124,8 @@ class Xss_Security_Test extends Unit_Test_Case { foreach ($found as $view => $entries) { foreach ($entries as $entry) { fwrite($fd, - sprintf("%-60s %-3s %-9s %s\n", - $view, $entry[0], $entry[1] ? "CLEAN" : "NOT_CLEAN", $entry[2])); + sprintf("%-60s %-3s %-5s %s\n", + $view, $entry[0], $entry[1] ? "CLEAN" : "DIRTY", $entry[2])); } } fclose($fd); -- cgit v1.2.3