From e6ee84bcf8a70765985eb7644bc07f177dc96bef Mon Sep 17 00:00:00 2001 From: alecpl Date: Sat, 20 Jun 2009 07:50:12 +0000 Subject: - check is_readable in load_from_file() --- program/include/rcube_config.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'program/include') diff --git a/program/include/rcube_config.php b/program/include/rcube_config.php index da6c09495..e596c0bd1 100644 --- a/program/include/rcube_config.php +++ b/program/include/rcube_config.php @@ -134,8 +134,8 @@ class rcube_config */ public function load_from_file($fpath) { - if (is_file($fpath)) { - @include($fpath); + if (is_file($fpath) && is_readable($fpath)) { + include($fpath); if (is_array($rcmail_config)) { $this->prop = array_merge($this->prop, $rcmail_config); return true; -- cgit v1.2.3