File tree Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Expand file tree Collapse file tree 3 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ Updates should follow the [Keep a CHANGELOG](http://keepachangelog.com/) princip
15
15
- Spoofing detection added #40
16
16
- RFC4315 MOVE fallback added #123 (thanks @freescout-help-desk )
17
17
- Content fetching RFC standard support added #510 (thanks @ybizeul )
18
+ - Support unescaped dates inside the search conditions #542
18
19
19
20
### Breaking changes
20
21
- NaN
Original file line number Diff line number Diff line change @@ -164,7 +164,10 @@ public function generate_query(): string {
164
164
if ($ statement [1 ] === null ) {
165
165
$ query .= $ statement [0 ];
166
166
} else {
167
- if (is_numeric ($ statement [1 ])) {
167
+ if (is_numeric ($ statement [1 ]) || (
168
+ ($ statement [0 ] === 'SINCE ' || $ statement [0 ] === 'BEFORE ' ) &&
169
+ $ this ->client ->getConfig ()->get ('options.unescaped_search_dates ' , false )
170
+ )) {
168
171
$ query .= $ statement [0 ] . ' ' . $ statement [1 ];
169
172
} else {
170
173
$ query .= $ statement [0 ] . ' " ' . $ statement [1 ] . '" ' ;
Original file line number Diff line number Diff line change 174
174
'soft_fail ' => false ,
175
175
'rfc822 ' => true ,
176
176
'debug ' => false ,
177
+ 'unescaped_search_dates ' => false ,
177
178
'uid_cache ' => true ,
178
179
// 'fallback_date' => "01.01.1970 00:00:00",
179
180
'boundary ' => '/boundary=(.*?(?=;)|(.*))/i ' ,
You can’t perform that action at this time.
0 commit comments