diff --git a/egw-pear/Net/IMAPProtocol.php b/egw-pear/Net/IMAPProtocol.php index 33c899bd95..fb6d7205ee 100644 --- a/egw-pear/Net/IMAPProtocol.php +++ b/egw-pear/Net/IMAPProtocol.php @@ -2314,6 +2314,7 @@ class Net_IMAPProtocol { $str_line_aux = $this->_getSubstr( $str_line , $pos ); $pos_aux = $this->_getClosingBracesPos( $str_line_aux ); $pos+=$pos_aux; + if ($pos == $len-1) break; } } if( $str_line[$pos] != $stopDelim ){