james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject cvs commit: james-server/src/java/org/apache/james/transport/mailets AbstractRedirect.java
Date Thu, 03 Jul 2003 05:24:18 GMT
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: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message