diff options
| author | Marc Alexander <admin@m-a-styles.de> | 2017-06-16 19:49:08 +0200 |
|---|---|---|
| committer | Marc Alexander <admin@m-a-styles.de> | 2017-06-16 19:49:08 +0200 |
| commit | c555bd78dfa4465aa2e51552dce608b0691c6a75 (patch) | |
| tree | cca27574e1df7938f8ee6630a4bad364d6f7def2 /phpBB/phpbb/install | |
| parent | eafbaf4c3059a4932f5e74e1124388594aad6117 (diff) | |
| parent | e6bdba7da1069c71e9b3c148266d0cd90b6cf1a4 (diff) | |
| download | forums-c555bd78dfa4465aa2e51552dce608b0691c6a75.tar forums-c555bd78dfa4465aa2e51552dce608b0691c6a75.tar.gz forums-c555bd78dfa4465aa2e51552dce608b0691c6a75.tar.bz2 forums-c555bd78dfa4465aa2e51552dce608b0691c6a75.tar.xz forums-c555bd78dfa4465aa2e51552dce608b0691c6a75.zip | |
Merge pull request #4849 from rubencm/ticket/15243
[ticket/15243] Check permissions before installing with SQLite
Diffstat (limited to 'phpBB/phpbb/install')
| -rw-r--r-- | phpBB/phpbb/install/helper/database.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/phpbb/install/helper/database.php b/phpBB/phpbb/install/helper/database.php index 192f0a3654..59b86a8ca7 100644 --- a/phpBB/phpbb/install/helper/database.php +++ b/phpBB/phpbb/install/helper/database.php @@ -336,6 +336,15 @@ class database ); } + // Check if SQLite database is writable + if ($dbms_info['SCHEMA'] === 'sqlite' + && (!$this->filesystem->is_writable($dbhost) || !$this->filesystem->is_writable(pathinfo($dbhost, PATHINFO_DIRNAME)))) + { + $errors[] = array( + 'title' =>'INST_ERR_DB_NO_WRITABLE', + ); + } + // Try to connect to db if (is_array($db->sql_connect($dbhost, $dbuser, $dbpass, $dbname, $dbport, false, true))) { |
