mirror of
https://github.com/phpbb/phpbb.git
synced 2025-03-24 01:20:40 +01:00
[ticket/15311] Escape file_name in sql query
PHPBB3-15311
This commit is contained in:
parent
4ebded01b9
commit
01f88fd269
@ -289,7 +289,7 @@ class acp_database
|
||||
|
||||
// Remove from database
|
||||
$sql = "DELETE FROM " . $table_prefix . "backups
|
||||
WHERE filename = '" . $file_name . "';";
|
||||
WHERE filename = '" . $db->sql_escape($file_name) . "';";
|
||||
$db->sql_query($sql);
|
||||
}
|
||||
catch (\Exception $e)
|
||||
|
Loading…
x
Reference in New Issue
Block a user