From 21b512a4e7928c1921c6d574ae969e588a0d40a8 Mon Sep 17 00:00:00 2001 From: Andreas Piening Date: Wed, 17 Mar 2010 21:45:00 +0000 Subject: [PATCH] BUGFIX: SQLite PDO adapter to use the new function to secure db storage location --- code/SQLitePDODatabase.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/code/SQLitePDODatabase.php b/code/SQLitePDODatabase.php index 3de80d3..bd00a70 100644 --- a/code/SQLitePDODatabase.php +++ b/code/SQLitePDODatabase.php @@ -29,7 +29,10 @@ class SQLitePDODatabase extends SQLite3Database { $this->lives_in_memory = false; } - self::safe_dir($parameters['path']); + if(!file_exists($parameters['path'])) { + SQLiteDatabaseConfigurationHelper::create_db_dir($parameters['path']); + SQLiteDatabaseConfigurationHelper::secure_db_dir($parameters['path']); + } $this->dbConn = new PDO("sqlite:$file");