cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arnaud Bienvenu <arnaud.bienv...@generasound.com>
Subject XSPCookieHelper bug [PATCH]
Date Wed, 05 Sep 2001 12:58:34 GMT
Unless I am mistaken, the <xsp-cookie:getValue name="blahblah"/> tag will
not work properly if there are several cookies sent in the request. I think
you should apply this tiny patch :

Index: ./src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java
===================================================================
RCS file: /home/cvspublic/xml-cocoon2/src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java,v
retrieving revision 1.2.2.5
diff -u -r1.2.2.5 XSPCookieHelper.java
--- ./src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java	2001/08/20
14:07:27	1.2.2.5
+++ ./src/org/apache/cocoon/components/language/markup/xsp/XSPCookieHelper.java	2001/09/05
12:51:48
@@ -651,7 +651,10 @@
                     currentCookie = cookies[count];
 
                     if (currentCookie.getName().equals(cookieName))
+                    {
                         matchFound = true;
+                        break;
+                    }
                 }
             }
             else if (retrieveByIndex)

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


Mime
View raw message