diff options
author | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:23:29 +0000 |
---|---|---|
committer | Bharat Mediratta <bharat@menalto.com> | 2009-01-01 00:23:29 +0000 |
commit | cd1d02375400972f2a719852d44c094ab500e8b6 (patch) | |
tree | 611f0c01f91b8d0aa1d160f64c7cf170d90c57fb /core/tests/File_Structure_Test.php | |
parent | 7c82691e0057188e07601c30069385c3f17cbff1 (diff) |
Change the preamble for views in two ways:
1) drop unnecessary semicolon
2) start with <?php for extra security in the case that the server itself doesn't
have short_tags enabled (the app won't work, but we need to make sure that we're
still secure)
Diffstat (limited to 'core/tests/File_Structure_Test.php')
-rw-r--r-- | core/tests/File_Structure_Test.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/tests/File_Structure_Test.php b/core/tests/File_Structure_Test.php index 8b328993..34baa1cb 100644 --- a/core/tests/File_Structure_Test.php +++ b/core/tests/File_Structure_Test.php @@ -66,7 +66,7 @@ class File_Structure_Test extends Unit_Test_Case { // The preamble for views is a single line that prevents direct script access $lines = file($file->getPathname()); $this->assert_equal( - "<? defined(\"SYSPATH\") or die(\"No direct script access.\"); ?>\n", + "<?php defined(\"SYSPATH\") or die(\"No direct script access.\") ?>\n", $lines[0], "in file: {$file->getPathname()}"); } else if (preg_match("|\.php$|", $file->getPathname())) { |