Skip to content

Commit

Permalink
Sieve: fixed multiple actions broken by validation
Browse files Browse the repository at this point in the history
  • Loading branch information
josaphatim committed May 24, 2024
1 parent d1c727e commit 264d43c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/imap/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -1459,7 +1459,7 @@ function connect_to_imap_server($address, $name, $port, $user, $pass, $tls, $ima

include APP_PATH.'modules/sievefilters/hm-sieve.php';
$sieveClientFactory = new Hm_Sieve_Client_Factory();
$client = $sieveClientFactory::init(null, $server);
$client = $sieveClientFactory->init(null, $server);

if (!$client) {
Hm_Msgs::add("ERRFailed to authenticate to the Sieve host");
Expand Down
2 changes: 1 addition & 1 deletion modules/sievefilters/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@
'actions_json' => FILTER_UNSAFE_RAW,
'filter_test_type' => FILTER_DEFAULT,
'imap_msg_uid' => FILTER_VALIDATE_INT,
'imap_server_id' => FILTER_VALIDATE_INT,
'imap_server_id' => FILTER_DEFAULT,
'folder' => FILTER_DEFAULT,
'sender' => FILTER_UNSAFE_RAW,
'selected_behaviour' => FILTER_DEFAULT,
Expand Down

0 comments on commit 264d43c

Please sign in to comment.