mirror of
https://github.com/silverstripe/silverstripe-sqlite3
synced 2024-10-22 17:05:37 +02:00
BUGFIX: SQLite PDO adapter to use the new function to secure db storage location
This commit is contained in:
parent
204e3efd38
commit
21b512a4e7
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user