Skip to content

lib-storage: mailbox-list - Track hierarchy part start using ns_sep#302

Open
nishat-06 wants to merge 1 commit into
dovecot:mainfrom
nishat-06:mailbox-list-dirstart-ns-sep
Open

lib-storage: mailbox-list - Track hierarchy part start using ns_sep#302
nishat-06 wants to merge 1 commit into
dovecot:mainfrom
nishat-06:mailbox-list-dirstart-ns-sep

Conversation

@nishat-06

Copy link
Copy Markdown
Contributor

mailbox_list_escape_name_params_to_str() tracks the start of a hierarchy part with a hardcoded '/', so when the caller passes a different ns_sep the "." and ".." checks in need_escape_dirstart() are skipped for every part after the first. imapc passes the remote server's announced LIST separator here along with the remote mailbox name, so a backend using ':' can return "..:..:etc" and get "../../etc" back as the local storage and fs name. Track the part start with ns_sep too, and use that same terminator test inside need_escape_dirstart().

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant