Skip to content

Commit

Permalink
Do not add quotes around the date in IMAP SINCE query - closes #4175
Browse files Browse the repository at this point in the history
  • Loading branch information
freescout-help-desk committed Aug 11, 2024
1 parent 07765cf commit 310d329
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions overrides/webklex/php-imap/src/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ public function generate_query(): string {
} else {
if (is_numeric($statement[1])) {
$query .= $statement[0] . ' ' . $statement[1];
} else if ($statement[0] == 'SINCE' && preg_match("#^[0-9]\-[a-zA-Z]\-[0-9]$#", $statement[1])) {
// https://github.com/freescout-help-desk/freescout/issues/4175
$query .= $statement[0] . ' ' . $statement[1];
} else {
$query .= $statement[0] . ' "' . $statement[1] . '"';
}
Expand Down

0 comments on commit 310d329

Please sign in to comment.