james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r414677 - /james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java
Date Thu, 15 Jun 2006 20:41:45 GMT
Author: noel
Date: Thu Jun 15 13:41:45 2006
New Revision: 414677

URL: http://svn.apache.org/viewvc?rev=414677&view=rev
Log:
Quick fix for CVE-2006-2806 / JAMES-535

Modified:
    james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java

Modified: james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java
URL: http://svn.apache.org/viewvc/james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java?rev=414677&r1=414676&r2=414677&view=diff
==============================================================================
--- james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java (original)
+++ james/server/branches/v2.3/src/java/org/apache/james/smtpserver/SMTPHandler.java Thu Jun
15 13:41:45 2006
@@ -752,6 +752,8 @@
             return commandLine;
         } catch (CRLFTerminatedReader.TerminationException te) {
             writeLoggedFlushedResponse("501 Syntax error at character position " + te.position()
+ ". CR and LF must be CRLF paired.  See RFC 2821 #2.7.1.");
+        } catch (CRLFTerminatedReader.LineLengthExceededException llee) {
+            writeLoggedFlushedResponse("500 Line length exceeded. See RFC 2821 #4.5.3.1.");
         }
     }
 



---------------------------------------------------------------------
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