tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From billbar...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers DecodeInterceptor.java
Date Fri, 05 Oct 2001 03:46:55 GMT
billbarker    01/10/04 20:46:55

  Modified:    src/share/org/apache/tomcat/modules/mappers
                        DecodeInterceptor.java
  Log:
  Add exception handling for previous fix.
  
  Revision  Changes    Path
  1.12      +8 -2      jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java
  
  Index: DecodeInterceptor.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/mappers/DecodeInterceptor.java,v
  retrieving revision 1.11
  retrieving revision 1.12
  diff -u -r1.11 -r1.12
  --- DecodeInterceptor.java	2001/10/05 03:33:29	1.11
  +++ DecodeInterceptor.java	2001/10/05 03:46:55	1.12
  @@ -526,8 +526,14 @@
   	    if( debug> 5 ) log("Already decoded " + req.getNote( decodedNote ));
   	    return 0;
   	}
  -	if( saveOriginal )
  -	    req.unparsedURI().duplicate( pathMB );
  +	if( saveOriginal ) {
  +	    try {
  +		req.unparsedURI().duplicate( pathMB );
  +	    } catch( IOException ex ) {
  +		// If it happens, do default processing
  +		log( "Error copying request ",ex);
  +	    }
  +	}
   	if (pathMB.indexOf('%') >= 0 || pathMB.indexOf( '+' ) >= 0) {
   	    try {
   		if(debug>1 )
  
  
  

Mime
View raw message