mirror of
https://github.com/stalwartlabs/mail-server.git
synced 2025-09-05 03:24:24 +08:00
IMAP/ManageSieve: Increase maximum quoted argument size (fixes #2039)
This commit is contained in:
parent
0529645790
commit
ac33b79bdc
1 changed files with 2 additions and 2 deletions
|
@ -277,7 +277,7 @@ impl<T: CommandParser> Receiver<T> {
|
|||
if !escaped {
|
||||
self.push_argument(true)?;
|
||||
self.state = State::Argument { last_ch: b' ' };
|
||||
} else if self.buf.len() < 1024 {
|
||||
} else if self.buf.len() < 4096 {
|
||||
self.buf.push(ch);
|
||||
self.state = State::ArgumentQuoted { escaped: false };
|
||||
} else {
|
||||
|
@ -294,7 +294,7 @@ impl<T: CommandParser> Receiver<T> {
|
|||
return Err(self.error_reset("Unterminated quoted argument."));
|
||||
}
|
||||
_ => {
|
||||
if self.buf.len() < 1024 {
|
||||
if self.buf.len() < 4096 {
|
||||
if escaped {
|
||||
self.buf.push(b'\\');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue