We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0b1c1d3 + 812bab3 commit e616006Copy full SHA for e616006
1 file changed
includes/qi_functions.php
@@ -557,8 +557,8 @@ function get_db_doctrine()
557
$dbport = $settings->get_config('dbport');
558
$db_prefix = $settings->get_config('db_prefix');
559
560
- // We need the db prefix to be prepended to the database name
561
- $dbname = $db_prefix . $dbname;
+ // Validate and prepend the db prefix to the database name
+ $dbname = $db_prefix . validate_dbname($dbname, true);
562
563
// SQLite needs the dbname appended to the dbhost
564
if (in_array($dbms, array('sqlite', 'sqlite3')))
0 commit comments