tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1832525 - /tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java
Date Wed, 30 May 2018 10:06:19 GMT
Author: markt
Date: Wed May 30 10:06:19 2018
New Revision: 1832525

URL: http://svn.apache.org/viewvc?rev=1832525&view=rev
Log:
Correctly handle a digest authorization header when the user name contains an escaped character.

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java?rev=1832525&r1=1832524&r2=1832525&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/parser/HttpParser.java Wed May 30 10:06:19
2018
@@ -409,7 +409,7 @@ public class HttpParser {
                 if (returnQuoted) {
                     result.append('\\');
                 }
-                result.append(c);
+                result.append((char) c);
             } else {
                 result.append((char) c);
             }



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


Mime
View raw message