Author: remy.maucherat(a)jboss.com
Date: 2014-12-01 07:49:41 -0500 (Mon, 01 Dec 2014)
New Revision: 2562
Modified:
branches/7.4.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java
Log:
BZ1158381: Port cookie flag.
Modified: branches/7.4.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java
===================================================================
--- branches/7.4.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java 2014-11-28
11:38:40 UTC (rev 2561)
+++ branches/7.4.x/src/main/java/org/jboss/web/rewrite/RewriteValve.java 2014-12-01
12:49:41 UTC (rev 2562)
@@ -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