From 02f3153fe3f4f32a489d5e3ceb64cb94cc41c42a Mon Sep 17 00:00:00 2001 From: Khoa Bui Date: Thu, 3 Mar 2016 14:53:07 -0800 Subject: [PATCH] remove open base_dir --- src/phpFastCache/phpFastCache.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/phpFastCache/phpFastCache.php b/src/phpFastCache/phpFastCache.php index fd557bb07..6a8cc9672 100644 --- a/src/phpFastCache/phpFastCache.php +++ b/src/phpFastCache/phpFastCache.php @@ -13,17 +13,14 @@ */ use phpFastCache\CacheManager; -use phpFastCache\Util\OpenBaseDir; define('PHP_EXT', substr(strrchr(__FILE__, '.'), 1)); -require_once __DIR__."/Util/OpenBaseDir.php"; /** * Register Autoload */ spl_autoload_register(function ($entity) { // Explode is faster than substr & strstr also more control $module = explode('\\',$entity,2); - if ($module[0] !== 'phpFastCache' - || !OpenBaseDir::checkBaseDir(__DIR__)) { + if ($module[0] !== 'phpFastCache') { /** * Not a part of phpFastCache file * then we return here.