noel        2003/07/02 22:27:39

  Modified:    src/java/org/apache/james/transport/mailets
                        AbstractRedirect.java
  Log:
  Fixed infinite loop if this code path was ever taken.
  
  Revision  Changes    Path
  1.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.14
  retrieving revision 1.15
  diff -u -r1.14 -r1.15
  --- AbstractRedirect.java     30 Jun 2003 09:41:03 -0000      1.14
  +++ AbstractRedirect.java     3 Jul 2003 05:27:39 -0000       1.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