mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-13 11:12:22 -05:00
IMAP: fix infinite loop detection
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@1669 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
11676ee5fd
commit
0e30d51945
@ -632,7 +632,7 @@ public class ImapConnection extends AbstractConnection {
|
|||||||
lastCommand = null;
|
lastCommand = null;
|
||||||
lastCommandCount = 0;
|
lastCommandCount = 0;
|
||||||
} else {
|
} else {
|
||||||
String command = line.substring(spaceIndex);
|
String command = line.substring(spaceIndex + 1);
|
||||||
if (command.equals(lastCommand)) {
|
if (command.equals(lastCommand)) {
|
||||||
lastCommandCount++;
|
lastCommandCount++;
|
||||||
if (lastCommandCount > 100 && !"NOOP".equalsIgnoreCase(lastCommand)) {
|
if (lastCommandCount > 100 && !"NOOP".equalsIgnoreCase(lastCommand)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user