mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-16 04:19:41 +02: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
|
// 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…
x
Reference in New Issue
Block a user