costin      01/04/24 07:45:45

  Modified:    src/share/org/apache/tomcat/modules/generators
                        ErrorHandler.java
  Log:
  Ops, stupid error trying to "improve" a patch.
  
  Revision  Changes    Path
  1.11      +2 -2      
jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java
  
  Index: ErrorHandler.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat/src/share/org/apache/tomcat/modules/generators/ErrorHandler.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- ErrorHandler.java 2001/04/23 01:21:58     1.10
  +++ ErrorHandler.java 2001/04/24 14:45:41     1.11
  @@ -173,7 +173,7 @@
            errorServlet=getHandlerForPath( cm, ctx, errorPath );
   
            String cpath=ctx.getPath();
  -         if( cpath="/")  cpath="";
  +         if( "/".equals(cpath))  cpath="";
            
            // Make sure Jsps will work - needed if the error page is a jsp
            if ( null!=errorPath && errorPath.startsWith("/") ) {
  @@ -290,7 +290,7 @@
            errorServlet=getHandlerForPath( cm, ctx, errorPath );
   
            String cpath=ctx.getPath();
  -         if( cpath="/")  cpath="";
  +         if( "/".equals( cpath ))  cpath="";
            
            // Make sure Jsps will work - needed if the error page is a jsp
            if ( null!=errorPath && errorPath.startsWith("/") ) {
  
  
  

Reply via email to