Don't try to load dot files from the data/ directory.
authorJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 13:35:10 +0000 (14:35 +0100)
committerJan Schneider <jan@horde.org>
Wed, 3 Nov 2010 13:35:10 +0000 (14:35 +0100)
wicked/lib/Page/StandardPage.php

index 14e7232..622c932 100644 (file)
@@ -57,6 +57,7 @@ class Wicked_Page_StandardPage extends Wicked_Page {
             // If we can't load $pagename, see if there's default data for it.
             $pagefile = WICKED_BASE . '/scripts/data/' . basename($pagename);
             if ($pagename == basename($pagename) &&
+                substr($pagename, 0, 1) != '.' &&
                 file_exists($pagefile)) {
                 $text = file_get_contents($pagefile);
                 try {