From: Jan Schneider Date: Wed, 3 Nov 2010 13:35:10 +0000 (+0100) Subject: Don't try to load dot files from the data/ directory. X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=4690adc80cbef1dbb3e612ea8523798a5ba19aae;p=horde.git Don't try to load dot files from the data/ directory. --- diff --git a/wicked/lib/Page/StandardPage.php b/wicked/lib/Page/StandardPage.php index 14e72321f..622c932a7 100644 --- a/wicked/lib/Page/StandardPage.php +++ b/wicked/lib/Page/StandardPage.php @@ -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 {