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:
commit
b48d3328fe
@ -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…
x
Reference in New Issue
Block a user