mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
[ticket/15311] Escape file_name in sql query
PHPBB3-15311
This commit is contained in:
parent
4ebded01b9
commit
01f88fd269
1 changed files with 1 additions and 1 deletions
|
@ -289,7 +289,7 @@ class acp_database
|
||||||
|
|
||||||
// Remove from database
|
// Remove from database
|
||||||
$sql = "DELETE FROM " . $table_prefix . "backups
|
$sql = "DELETE FROM " . $table_prefix . "backups
|
||||||
WHERE filename = '" . $file_name . "';";
|
WHERE filename = '" . $db->sql_escape($file_name) . "';";
|
||||||
$db->sql_query($sql);
|
$db->sql_query($sql);
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
|
|
Loading…
Add table
Reference in a new issue