mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-18 06:29:18 -04:00
Use true/false for boolean parameter inclusive to avoid potential for sqli, and possibly make the code clearer
This commit is contained in:
parent
0fb76c71ac
commit
d44d11d864
2 changed files with 7 additions and 5 deletions
|
@ -86,7 +86,7 @@ class EventPushActionsStore(SQLBaseStore):
|
|||
" user_id = ?"
|
||||
" AND room_id = ?"
|
||||
" AND %s"
|
||||
) % (lower_bound(token, self.database_engine, inclusive=""),)
|
||||
) % (lower_bound(token, self.database_engine, inclusive=False),)
|
||||
|
||||
txn.execute(sql, (user_id, room_id))
|
||||
row = txn.fetchone()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue