1
0
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:
Rubén Calvo 2018-05-08 14:13:10 +02:00
parent 4ebded01b9
commit 01f88fd269

View File

@ -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)