james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pgoldst...@apache.org
Subject cvs commit: jakarta-james/src/java/org/apache/james/smtpserver SMTPHandler.java
Date Thu, 26 Sep 2002 01:15:23 GMT
pgoldstein    2002/09/25 18:15:23

  Modified:    src/java/org/apache/james/smtpserver SMTPHandler.java
  Log:
  I introduced a bug with my last update.  Thanks to Noel Bergman for the fix.
  
  
  Revision  Changes    Path
  1.27      +3 -3      jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java
  
  Index: SMTPHandler.java
  ===================================================================
  RCS file: /home/cvs/jakarta-james/src/java/org/apache/james/smtpserver/SMTPHandler.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- SMTPHandler.java	14 Sep 2002 09:00:57 -0000	1.26
  +++ SMTPHandler.java	26 Sep 2002 01:15:23 -0000	1.27
  @@ -656,7 +656,7 @@
                       String mailOptionName = mailOption;
                       String mailOptionValue = "";
                       if (equalIndex > 0) {
  -                        mailOptionName = mailOption.substring(0, (equalIndex - 1)).toUpperCase(Locale.US);
  +                        mailOptionName = mailOption.substring(0, equalIndex).toUpperCase(Locale.US);
                           mailOptionValue = mailOption.substring(equalIndex + 1);
                       }
   
  @@ -801,7 +801,7 @@
                       String rcptOptionName = rcptOption;
                       String rcptOptionValue = "";
                       if (equalIndex > 0) {
  -                        rcptOptionName = rcptOption.substring(0, (equalIndex - 1)).toUpperCase(Locale.US);
  +                        rcptOptionName = rcptOption.substring(0, equalIndex).toUpperCase(Locale.US);
                           rcptOptionValue = rcptOption.substring(equalIndex + 1);
                       }
                       // Unexpected option attached to the RCPT command
  
  
  

--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@jakarta.apache.org>


Mime
View raw message