mirror of
https://github.com/roundcube/roundcubemail.git
synced 2026-02-20 01:21:20 +01:00
Fix handling of string-list format values for date tests in Out of Office (#10075)
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
- Fix handling of string-list format values for date tests in Out of Office (#10075)
|
||||
|
||||
* version 9.6 [2025-11-29]
|
||||
-----------------------------------------------------------
|
||||
- Show a warning when actions in wrong order (#10015, #6590)
|
||||
|
||||
@@ -149,6 +149,14 @@ class rcube_sieve_vacation extends rcube_sieve_engine
|
||||
}
|
||||
}
|
||||
|
||||
// According to RFC5260, currentdate target can be a string-list,
|
||||
// but here we support only a single value (#10074)
|
||||
foreach ($rule['tests'] as $i => $r) {
|
||||
if ($r['test'] == 'currentdate' && is_array($r['arg'])) {
|
||||
$rule['tests'][$i]['arg'] = array_first($r['arg']);
|
||||
}
|
||||
}
|
||||
|
||||
$this->vacation = array_merge($rule['actions'][0], [
|
||||
'idx' => $idx,
|
||||
'disabled' => $rule['disabled'] || !$active,
|
||||
|
||||
Reference in New Issue
Block a user