Set open_basedir to restrict file access to the current directory

This commit is contained in:
Chris Kankiewicz
2019-11-16 23:12:24 -07:00
parent f491786b8e
commit 663cb20ee3

View File

@@ -10,6 +10,9 @@ use Slim\Views\Twig;
require __DIR__ . '/vendor/autoload.php';
/** Set some restrictions */
ini_set('open_basedir', __DIR__);
/** Initialize environment variable handler */
$dotenv = Dotenv::create(__DIR__);
$dotenv->load();