1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 04:30:29 +01:00

Merge pull request #6121 from 3D-I/ticket/16685

[ticket/16685] Fix SQL error in ACP for DB name if not correctly escaped
This commit is contained in:
Marc Alexander 2021-01-15 23:10:44 +01:00
commit b48d3328fe
No known key found for this signature in database
GPG Key ID: 50E0D2423696F995

View File

@ -2847,7 +2847,7 @@ function get_database_size()
$database_size = 0;
$sql = 'SHOW TABLE STATUS
FROM ' . $db_name;
FROM ' . $db->sql_quote($db_name);
$result = $db->sql_query($sql, 7200);
while ($row = $db->sql_fetchrow($result))