diff options
-rw-r--r-- | CHANGELOG | 1 | ||||
-rwxr-xr-x | program/include/iniset.php | 9 |
2 files changed, 9 insertions, 1 deletions
@@ -1,6 +1,7 @@ CHANGELOG Roundcube Webmail =========================== +- Make rcube_autoload silently skip unknown classes (#1487109) - Fix charset detection in vcards with encoded values (#1485542) - Better CSS cursors for splitters (#1486874) - Show the same message only once (#1487641) diff --git a/program/include/iniset.php b/program/include/iniset.php index 5ef067f65..b5ca1a8cf 100755 --- a/program/include/iniset.php +++ b/program/include/iniset.php @@ -105,7 +105,14 @@ function rcube_autoload($classname) ), $classname ); - include $filename. '.php'; + + if ($fp = @fopen("$filename.php", 'r', true)) { + fclose($fp); + include_once("$filename.php"); + return true; + } + + return false; } spl_autoload_register('rcube_autoload'); |