Skip to content

Commit

Permalink
Fix so scripts listed in managesieve_filename_exceptions aren't displ…
Browse files Browse the repository at this point in the history
…ayed on the list (#1488724)
  • Loading branch information
alecpl committed Oct 3, 2012
1 parent ccdd61e commit 7b274b8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions plugins/managesieve/Changelog
@@ -1,7 +1,10 @@
* version 6.0 [2012-10-03]
-----------------------------------------------------------
- Fixed issue with DBMail bug [http://pear.php.net/bugs/bug.php?id=19077] (#1488594)
- Added support for enotify/notify (RFC5435, RFC5436, draft-ietf-sieve-notify-00)
- Change default port to 4190 (IANA-allocated), add port auto-detection (#1488713)
- Added request size limits detection and script corruption prevention (#1488648)
- Fix so scripts listed in managesieve_filename_exceptions aren't displayed on the list (#1488724)

* version 5.2 [2012-07-24]
-----------------------------------------------------------
Expand Down
8 changes: 7 additions & 1 deletion plugins/managesieve/managesieve.php
Expand Up @@ -62,7 +62,7 @@ class managesieve extends rcube_plugin
"x-beenthere",
);

const VERSION = '5.2';
const VERSION = '6.0';
const PROGNAME = 'Roundcube (Managesieve)';
const PORT = 4190;

Expand Down Expand Up @@ -1839,6 +1839,12 @@ public function list_scripts()
if ($active = $this->sieve->get_active()) {
$this->active = array($active);
}

// Hide scripts from config
$exceptions = $this->rc->config->get('managesieve_filename_exceptions');
if (!empty($exceptions)) {
$this->list = array_diff($this->list, (array)$exceptions);
}
}

return $this->list;
Expand Down

0 comments on commit 7b274b8

Please sign in to comment.