tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r483774 - /tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java
Date Fri, 08 Dec 2006 01:54:51 GMT
Author: markt
Date: Thu Dec  7 17:54:50 2006
New Revision: 483774

URL: http://svn.apache.org/viewvc?view=rev&rev=483774
Log:
RFC2616 specifies 1*8ALPHA and ALPHA is a-z or A-Z, it does not include numbers

Modified:
    tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java

Modified: tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java
URL: http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java?view=diff&rev=483774&r1=483773&r2=483774
==============================================================================
--- tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java (original)
+++ tomcat/tc6.0.x/trunk/java/org/apache/catalina/connector/Request.java Thu Dec  7 17:54:50
2006
@@ -2601,7 +2601,7 @@
     protected static final boolean isAlpha(String value) {
         for (int i = 0; i < value.length(); i++) {
             char c = value.charAt(i);
-            if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <=
'Z') || (c >= '1' && c <= '9'))) {
+            if (!((c >= 'a' && c <= 'z') || (c >= 'A' && c <=
'Z'))) {
                 return false;
             }
         }



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


Mime
View raw message