Archived
1
0

* PDO-SQLite patches by nth

This commit is contained in:
Garvin Hicking
2010-10-12 12:38:13 +00:00
parent bf36e96f61
commit aba04f43b4
7 changed files with 11 additions and 21 deletions
+1 -1
View File
@@ -742,7 +742,7 @@ function serendipity_checkInstallation() {
$errs[] = sprintf(CANT_EXECUTE_BINARY, 'convert imagemagick');
}
if ($_POST['dbType'] == 'sqlite' || $_POST['dbType'] == 'sqlite3') {
if ($_POST['dbType'] == 'sqlite' || $_POST['dbType'] == 'sqlite3' || $_POST['dbType'] == 'pdo-sqlite') {
// We don't want that our SQLite db file can be guessed from other applications on a server
// and have access to our's. So we randomize the SQLite dbname.
$_POST['sqlitedbName'] = $_POST['dbName'] . '_' . md5(time());