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/jasper/compiler JspReader.java
Date Tue, 22 Jan 2002 04:18:39 GMT
billbarker    02/01/21 20:18:38

  Modified:    src/share/org/apache/jasper/compiler JspReader.java
  Log:
  Handle extra "---" in JSP comments.
  
  Fix for bug 5191.
  
  Submitted by: Drew Sudell asudell@acm.org
  
  Revision  Changes    Path
  1.25      +4 -1      jakarta-tomcat/src/share/org/apache/jasper/compiler/JspReader.java
  
  Index: JspReader.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat/src/share/org/apache/jasper/compiler/JspReader.java,v
  retrieving revision 1.24
  retrieving revision 1.25
  diff -u -r1.24 -r1.25
  --- JspReader.java	18 Sep 2001 23:24:46 -0000	1.24
  +++ JspReader.java	22 Jan 2002 04:18:38 -0000	1.25
  @@ -436,8 +436,11 @@
   	    
   	    if ( ch == limit.charAt(0) ) {
   		for (int i = 1 ; i < limlen ; i++) {
  -		    if (Character.toLowerCase((char) nextChar()) != limit.charAt(i))
  +		    if (Character.toLowerCase((char) nextChar()) != limit.charAt(i)){
  +			reset(ret);
  +			advance(1);
   			continue skip;
  +		    }
   		}
   		return ret;
   	    }
  
  
  

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


Mime
View raw message