mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/16685] Fix SQL error in ACP for DB name if not correctly escaped
PHPBB3-16685
This commit is contained in:
parent
57e2a32d4c
commit
2f2782ed1e
1 changed files with 1 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue