Changeset 2273 in subversion
- Timestamp:
- Feb 5, 2009 12:43:54 PM (4 years ago)
- Location:
- trunk/roundcubemail
- Files:
-
- 2 edited
-
CHANGELOG (modified) (1 diff)
-
program/lib/imap.inc (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/roundcubemail/CHANGELOG
r2272 r2273 1 1 CHANGELOG RoundCube Webmail 2 2 --------------------------- 3 4 2009/02/05 (alec) 5 ---------- 6 - Support NGINX as IMAP backend: better BAD response handling (#1485720) 3 7 4 8 2009/02/04 (alec) -
trunk/roundcubemail/program/lib/imap.inc
r2263 r2273 69 69 - added iil_PutLineC() 70 70 - fixed iil_C_Sort() to support very long and/or divided responses 71 - added BYE response simple support for endless loop prevention71 - added BYE/BAD response simple support for endless loop prevention 72 72 - added 3rd argument in iil_StartsWith* functions 73 73 - fix iil_C_FetchPartHeader() in some cases by use of iil_C_HandlePartBody() … … 308 308 } 309 309 310 // check if $string starts with $match 311 function iil_StartsWith($string, $match, $ bye=false) {310 // check if $string starts with $match (or * BYE/BAD) 311 function iil_StartsWith($string, $match, $error=false) { 312 312 $len = strlen($match); 313 313 if ($len == 0) { … … 317 317 return true; 318 318 } 319 if ($ bye && strncmp($string, '* BYE ', 6) == 0) {319 if ($error && preg_match('/^\* (BYE|BAD) /', $string)) { 320 320 return true; 321 321 }
Note: See TracChangeset
for help on using the changeset viewer.
