Skip to content

Commit

Permalink
Managesieve: Fix current script state after initial scripts creation …
Browse files Browse the repository at this point in the history
…in managesieve_kolab_master mode
  • Loading branch information
alecpl committed Sep 25, 2024
1 parent 9bf6ee3 commit a4e50e3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
- Fix potential HTTP protocol version mismatch (#8982)
- Fix PHP warnings (#9616, #9611)
- Fix whitespace handling in vCard line continuation (#9637)
- Fix current script state after initial scripts creation in managesieve_kolab_master mode

## Release 1.6.9

Expand Down
1 change: 1 addition & 0 deletions plugins/managesieve/Changelog
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
- Support an array in managesieve_host option (#9447)
- Protect special scripts in managesieve_kolab_master mode
- Fix infinite loop when parsing a malformed script (#9562)
- Fix current script state after initial scripts creation in managesieve_kolab_master mode

* version 9.5 [2023-03-26]
-----------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions plugins/managesieve/lib/Roundcube/rcube_sieve_engine.php
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,11 @@ protected function load_script($script_name = null)
// get (first) active script
if (!empty($this->active)) {
$script_name = $this->active[0];
} elseif ($list) {
} elseif (!empty($list)) {
$script_name = $list[0];
} else {
// if script does not exist create one with default content
$this->create_default_script();
$script_name = $this->create_default_script();
}
}

Expand Down

0 comments on commit a4e50e3

Please sign in to comment.