Author: remy.maucherat(a)jboss.com
Date: 2014-10-29 06:04:49 -0400 (Wed, 29 Oct 2014)
New Revision: 2536
Modified:
branches/7.5.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java
Log:
BZ1158385: C= should actually be CO=.
Modified: branches/7.5.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java
===================================================================
--- branches/7.5.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java 2014-10-24
12:11:17 UTC (rev 2535)
+++ branches/7.5.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java 2014-10-29
10:04:49 UTC (rev 2536)
@@ -622,12 +622,12 @@
protected static void parseRuleFlag(String line, RewriteRule rule, String flag) {
if (flag.equals("chain") || flag.equals("C")) {
rule.setChain(true);
- } else if (flag.startsWith("cookie=") ||
flag.startsWith("C=")) {
+ } else if (flag.startsWith("cookie=") ||
flag.startsWith("CO=")) {
rule.setCookie(true);
if (flag.startsWith("cookie")) {
flag = flag.substring("cookie=".length());
- } else if (flag.startsWith("C=")) {
- flag = flag.substring("C=".length());
+ } else if (flag.startsWith("CO=")) {
+ flag = flag.substring("CO=".length());
}
StringTokenizer tokenizer = new StringTokenizer(flag, ":");
if (tokenizer.countTokens() < 2) {
Show replies by date