noel        2003/07/02 22:24:18

  Modified:    src/java/org/apache/james/transport/mailets Tag:
                        branch_2_1_fcs AbstractRedirect.java
  Log:
  Fixed infinite loop if this code path was ever taken.
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.15  +2 -2      
james-server/src/java/org/apache/james/transport/mailets/AbstractRedirect.java
  
  Index: AbstractRedirect.java
  ===================================================================
  RCS file: 
/home/cvs/james-server/src/java/org/apache/james/transport/mailets/AbstractRedirect.java,v
  retrieving revision 1.1.2.14
  retrieving revision 1.1.2.15
  diff -u -r1.1.2.14 -r1.1.2.15
  --- AbstractRedirect.java     30 Jun 2003 09:42:07 -0000      1.1.2.14
  +++ AbstractRedirect.java     3 Jul 2003 05:24:17 -0000       1.1.2.15
  @@ -1232,7 +1232,7 @@
           if (oldName.length() > 76) {
               int count = 0;
               int index = 0;
  -            while ((index = oldName.indexOf('!', index)) >= 0) {
  +            while ((index = oldName.indexOf('!', index + 1)) >= 0) {
                   count++;
               }
               // It looks like a configuration loop. It's better to stop.
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to