tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From r...@apache.org
Subject cvs commit: jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11 InternalOutputBuffer.java
Date Thu, 22 May 2003 18:21:08 GMT
remm        2003/05/22 11:21:08

  Modified:    http11/src/java/org/apache/coyote/http11
                        InternalOutputBuffer.java
  Log:
  - Filter out CRLF from the message text.
  
  Revision  Changes    Path
  1.17      +4 -2      jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/InternalOutputBuffer.java
  
  Index: InternalOutputBuffer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/InternalOutputBuffer.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- InternalOutputBuffer.java	22 Nov 2002 15:55:32 -0000	1.16
  +++ InternalOutputBuffer.java	22 May 2003 18:21:08 -0000	1.17
  @@ -425,10 +425,12 @@
           write(" ");
   
           // Write message
  -        if (response.getMessage() == null) {
  +        String message = response.getMessage();
  +        if (message == null) {
               write(HttpMessages.getMessage(status));
           } else {
  -            write(response.getMessage());
  +            message = message.replace('\n', ' ').replace('\r', ' ');
  +            write(message);
           }
   
           // End the response status line
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org


Mime
View raw message