[zope2-tracker] [Bug 1173106] [NEW] Browser Id Manager: Cookie Domain problem with domains containing a hyphen

Georg Pfolz georg.pfolz at invesy.at
Fri Apr 26 09:44:02 UTC 2013


Public bug reported:

When I try to set a cookie-domain that contains a hyphen, I get the
error 'Cookie domain must contain at least two dots ' when the string
has exactly two dots (it works with three).

The problem lies in the regex in BrowserIdManager.py, line 53:
twodotsin = re.compile('(\w*\.){2,}').search

I suggest changing it to:
twodotsin = re.compile('([-\w]*\.){2,}').search
which works for me

** Affects: zope2
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Zope 2
Developers, which is subscribed to Zope 2.
https://bugs.launchpad.net/bugs/1173106

Title:
  Browser Id Manager: Cookie Domain problem with domains containing a
  hyphen

To manage notifications about this bug go to:
https://bugs.launchpad.net/zope2/+bug/1173106/+subscriptions


More information about the zope2-tracker mailing list