0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-19 19:22:14 +02:00

avoid sql injection

This commit is contained in:
David Goodwin 2023-12-23 21:47:57 +00:00
parent 015d4ec9cd
commit 4d6767cc37

View File

@ -433,7 +433,7 @@ class TotpPf
*/
public function getException(int $id): array
{
return db_query_one("SELECT * FROM totp_exception_address WHERE id=$id");
return db_query_one("SELECT * FROM totp_exception_address WHERE id=:id", ['id' => $id]);
}
}
/* vim: set expandtab softtabstop=4 tabstop=4 shiftwidth=4: */