Skip to content

Commit

Permalink
Merge pull request #789 from kroky/bugfix/imap-server-delete
Browse files Browse the repository at this point in the history
fix imap server deletion sanitizing server IDs
  • Loading branch information
kroky authored Oct 10, 2023
2 parents 49606ca + b5b47be commit e9cb32c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/imap/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@
'imap_expanded_folder_path' => array(FILTER_SANITIZE_FULL_SPECIAL_CHARS, false),
'imap_expanded_folder_formatted' => array(FILTER_UNSAFE_RAW, false),
'imap_server_ids' => array(FILTER_SANITIZE_FULL_SPECIAL_CHARS, false),
'imap_server_id' => array(FILTER_VALIDATE_INT, false),
'imap_server_id' => array(FILTER_SANITIZE_FULL_SPECIAL_CHARS, false),
'combined_inbox_server_ids' => array(FILTER_SANITIZE_FULL_SPECIAL_CHARS, false),
'imap_delete_error' => array(FILTER_VALIDATE_BOOLEAN, false),
'move_count' => array(FILTER_SANITIZE_FULL_SPECIAL_CHARS, FILTER_REQUIRE_ARRAY),
Expand All @@ -351,7 +351,7 @@
),

'allowed_get' => array(
'imap_server_id' => FILTER_VALIDATE_INT,
'imap_server_id' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
'imap_download_message' => FILTER_VALIDATE_BOOLEAN,
'imap_remove_attachment' => FILTER_VALIDATE_BOOLEAN,
'imap_show_message' => FILTER_VALIDATE_BOOLEAN,
Expand All @@ -361,7 +361,7 @@
'allowed_post' => array(
'server_port' => FILTER_VALIDATE_INT,
'server' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
'imap_server_id' => FILTER_VALIDATE_INT,
'imap_server_id' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
'imap_server_ids' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
'imap_user' => FILTER_SANITIZE_FULL_SPECIAL_CHARS,
'imap_pass' => FILTER_UNSAFE_RAW,
Expand Down

0 comments on commit e9cb32c

Please sign in to comment.