Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Properly escape underscore in db query
Co-authored-by: Joas Schilling <[email protected]>
Signed-off-by: Carl Schwan <[email protected]>
  • Loading branch information
2 people authored and backportbot-nextcloud[bot] committed Oct 14, 2022
commit 25efb43ac40c01defb1077563c3789a762f0aacd
2 changes: 1 addition & 1 deletion apps/user_status/lib/Db/UserStatusMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function findAllRecent(?int $limit = null, ?int $offset = null): array {
$qb->expr()->isNotNull('custom_icon'),
$qb->expr()->isNotNull('custom_message'),
),
$qb->expr()->notLike('user_id', $qb->createNamedParameter('\_%'))
$qb->expr()->notLike('user_id', $qb->createNamedParameter($this->db->escapeLikeParameter('_') . '%'))
));

if ($limit !== null) {
Expand Down