tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From amy...@apache.org
Subject cvs commit: jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core StandardServer.java
Date Fri, 03 Jan 2003 19:47:01 GMT
amyroh      2003/01/03 11:47:01

  Modified:    catalina/src/share/org/apache/catalina/core
                        StandardServer.java
  Log:
  More error-prone approach.
  
  Revision  Changes    Path
  1.34      +6 -9      jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java
  
  Index: StandardServer.java
  ===================================================================
  RCS file: /home/cvs/jakarta-tomcat-4.0/catalina/src/share/org/apache/catalina/core/StandardServer.java,v
  retrieving revision 1.33
  retrieving revision 1.34
  diff -u -r1.33 -r1.34
  --- StandardServer.java	3 Jan 2003 01:59:08 -0000	1.33
  +++ StandardServer.java	3 Jan 2003 19:47:01 -0000	1.34
  @@ -824,11 +824,8 @@
               } else if (c == '"') {
                   filtered.append(""");
               } else if (c == '&') {
  -                char s1 = input.charAt(i+3);
  -                char s2 = input.charAt(i+4);
  -                char s3 = input.charAt(i+5);
  -                if (((s1 == ';') || (s2 == ';')) || (s3 == ';')) {
  -                    // do not convert if it's already in converted form
  +                int j = input.indexOf(";", i);
  +                if (j > 0) {
                       filtered.append(c);
                   } else {
                       filtered.append("&");
  
  
  

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