chemistry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From f...@apache.org
Subject svn commit: r1204923 - /chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java
Date Tue, 22 Nov 2011 11:20:31 GMT
Author: fmui
Date: Tue Nov 22 11:20:30 2011
New Revision: 1204923

URL: http://svn.apache.org/viewvc?rev=1204923&view=rev
Log:
Cookie Manager: relaxed domain matching

Modified:
    chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java

Modified: chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java?rev=1204923&r1=1204922&r2=1204923&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java
(original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-client/chemistry-opencmis-client-bindings/src/main/java/org/apache/chemistry/opencmis/client/bindings/spi/cookies/CmisHttpCookie.java
Tue Nov 22 11:20:30 2011
@@ -94,7 +94,8 @@ public final class CmisHttpCookie implem
         }
         String newDomain = domain.toLowerCase();
         String newHost = host.toLowerCase();
-        return isValidDomain(newDomain) && effDomainMatches(newDomain, newHost) &&
isValidHost(newDomain, newHost);
+        return newDomain.equals(newHost)
+                || (isValidDomain(newDomain) && effDomainMatches(newDomain, newHost)
&& isValidHost(newDomain, newHost));
     }
 
     private static boolean effDomainMatches(String domain, String host) {



Mime
View raw message