Skip to content

Commit e616006

Browse files
authored
Merge pull request #289 from iMattPro/issue-286
Fix phpBB4 installation issues
2 parents 0b1c1d3 + 812bab3 commit e616006

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

includes/qi_functions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,8 +557,8 @@ function get_db_doctrine()
557557
$dbport = $settings->get_config('dbport');
558558
$db_prefix = $settings->get_config('db_prefix');
559559

560-
// We need the db prefix to be prepended to the database name
561-
$dbname = $db_prefix . $dbname;
560+
// Validate and prepend the db prefix to the database name
561+
$dbname = $db_prefix . validate_dbname($dbname, true);
562562

563563
// SQLite needs the dbname appended to the dbhost
564564
if (in_array($dbms, array('sqlite', 'sqlite3')))

0 commit comments

Comments
 (0)