summaryrefslogtreecommitdiff
path: root/modules/gallery/tests/Xss_Security_Test.php
diff options
context:
space:
mode:
authorBharat Mediratta <bharat@menalto.com>2009-05-31 00:13:28 -0700
committerBharat Mediratta <bharat@menalto.com>2009-05-31 00:13:28 -0700
commita049de28ace48a3970371caf24d7c389d8d93cd7 (patch)
tree2aa68ca93e6e2e243580916cee9cb54a49d5a50c /modules/gallery/tests/Xss_Security_Test.php
parent708f27f483d70660446ea2132b02cb7b39225f98 (diff)
Update the clean/dirty format, check all ffiles instead of just one (which was for debugging)
Diffstat (limited to 'modules/gallery/tests/Xss_Security_Test.php')
-rw-r--r--modules/gallery/tests/Xss_Security_Test.php7
1 files changed, 3 insertions, 4 deletions
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);