Changeset 2273 in subversion


Ignore:
Timestamp:
Feb 5, 2009 12:43:54 PM (4 years ago)
Author:
alec
Message:
  • Support NGINX as IMAP backend: better BAD response handling (#1485720)
Location:
trunk/roundcubemail
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/roundcubemail/CHANGELOG

    r2272 r2273  
    11CHANGELOG RoundCube Webmail 
    22--------------------------- 
     3 
     42009/02/05 (alec) 
     5---------- 
     6- Support NGINX as IMAP backend: better BAD response handling (#1485720) 
    37 
    482009/02/04 (alec) 
  • trunk/roundcubemail/program/lib/imap.inc

    r2263 r2273  
    6969                - added iil_PutLineC()  
    7070                - fixed iil_C_Sort() to support very long and/or divided responses 
    71                 - added BYE response simple support for endless loop prevention 
     71                - added BYE/BAD response simple support for endless loop prevention 
    7272                - added 3rd argument in iil_StartsWith* functions 
    7373                - fix iil_C_FetchPartHeader() in some cases by use of iil_C_HandlePartBody() 
     
    308308} 
    309309 
    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) 
     311function iil_StartsWith($string, $match, $error=false) { 
    312312        $len = strlen($match); 
    313313        if ($len == 0) { 
     
    317317                return true; 
    318318        } 
    319         if ($bye && strncmp($string, '* BYE ', 6) == 0) { 
     319        if ($error && preg_match('/^\* (BYE|BAD) /', $string)) { 
    320320                return true; 
    321321        } 
Note: See TracChangeset for help on using the changeset viewer.