You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2014/09/01 21:58:37 UTC
svn commit: r1621876 -
/tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java
Author: markt
Date: Mon Sep 1 19:58:37 2014
New Revision: 1621876
URL: http://svn.apache.org/r1621876
Log:
Fix copy/paste error
Modified:
tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java
Modified: tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java?rev=1621876&r1=1621875&r2=1621876&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/http/parser/Cookie.java Mon Sep 1 19:58:37 2014
@@ -205,7 +205,7 @@ public class Cookie {
private static void skipUntilSemiColon(ByteBuffer bb) {
while(bb.hasRemaining()) {
- if (bb.get() == EQUALS_BYTE) {
+ if (bb.get() == SEMICOLON_BYTE) {
break;
}
}
@@ -333,7 +333,7 @@ public class Cookie {
private static void logInvalidHeader(ByteBuffer bb) {
UserDataHelper.Mode logMode = invalidCookieLog.getNextMode();
if (logMode != null) {
- String headerValue = new String(bb.array(), bb.position(), bb.limit(),
+ String headerValue = new String(bb.array(), bb.position(), bb.limit() - bb.position(),
StandardCharsets.UTF_8);
String message = sm.getString("cookie.invalidCookieValue", headerValue);
switch (logMode) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org