summaryrefslogtreecommitdiff
path: root/program
diff options
context:
space:
mode:
authoralecpl <alec@alec.pl>2009-06-20 07:50:12 +0000
committeralecpl <alec@alec.pl>2009-06-20 07:50:12 +0000
commite6ee84bcf8a70765985eb7644bc07f177dc96bef (patch)
treeadaa4d6bbdd98efc5bd2af1b6e51a0f768a6c685 /program
parent6bd74d8d51045923698f958fc917918411c6ca13 (diff)
- check is_readable in load_from_file()
Diffstat (limited to 'program')
-rw-r--r--program/include/rcube_config.php4
1 files changed, 2 insertions, 2 deletions
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;