Fix: Folders that contain a & can't be used (#90)

This commit is contained in:
mdecimus
2023-09-16 11:06:52 +02:00
parent 216fcf2d73
commit bb7f43ecab
6 changed files with 71 additions and 34 deletions

View File

@@ -51,7 +51,7 @@ use crate::core::{MailboxId, Session, SessionData};
impl<T: AsyncRead> Session<T> {
pub async fn handle_get_acl(&mut self, request: Request<Command>) -> crate::OpResult {
match request.parse_acl() {
match request.parse_acl(self.version) {
Ok(arguments) => {
let data = self.state.session_data();
let is_rev2 = self.version.is_rev2();
@@ -165,7 +165,7 @@ impl<T: AsyncRead> Session<T> {
}
pub async fn handle_my_rights(&mut self, request: Request<Command>) -> crate::OpResult {
match request.parse_acl() {
match request.parse_acl(self.version) {
Ok(arguments) => {
let data = self.state.session_data();
let is_rev2 = self.version.is_rev2();
@@ -265,7 +265,7 @@ impl<T: AsyncRead> Session<T> {
pub async fn handle_set_acl(&mut self, request: Request<Command>) -> crate::OpResult {
let command = request.command;
match request.parse_acl() {
match request.parse_acl(self.version) {
Ok(arguments) => {
let data = self.state.session_data();
@@ -489,7 +489,7 @@ impl<T: AsyncRead> Session<T> {
}
pub async fn handle_list_rights(&mut self, request: Request<Command>) -> crate::OpResult {
match request.parse_acl() {
match request.parse_acl(self.version) {
Ok(arguments) => {
self.write_bytes(
StatusResponse::completed(Command::ListRights)