Mercurial > moin > 1.9
changeset 482:3c08c0657dad
fix cookie path for root url wikis
imported from: moin--main--1.5--patch-486
author | Thomas Waldmann <tw@waldmann-edv.de> |
---|---|
date | Sat, 18 Mar 2006 22:24:02 +0000 |
parents | 285b42d58a45 |
children | a594780d5e64 |
files | ChangeLog MoinMoin/auth.py |
diffstat | 2 files changed, 18 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Sat Mar 18 19:47:38 2006 +0000 +++ b/ChangeLog Sat Mar 18 22:24:02 2006 +0000 @@ -2,6 +2,20 @@ # arch-tag: automatic-ChangeLog--arch@arch.thinkmo.de--2003-archives/moin--main--1.5 # +2006-03-18 23:24:02 GMT Thomas Waldmann <tw@waldmann-edv.de> patch-486 + + Summary: + fix cookie path for root url wikis + Revision: + moin--main--1.5--patch-486 + + fix cookie path for root url wikis + + + modified files: + ChangeLog MoinMoin/auth.py + + 2006-03-18 20:47:38 GMT Thomas Waldmann <tw@waldmann-edv.de> patch-485 Summary:
--- a/MoinMoin/auth.py Sat Mar 18 19:47:38 2006 +0000 +++ b/MoinMoin/auth.py Sat Mar 18 22:24:02 2006 +0000 @@ -65,7 +65,10 @@ if cfg.cookie_path: c['MOIN_ID']['path'] = cfg.cookie_path else: - c['MOIN_ID']['path'] = request.getScriptname() + path = request.getScriptname() + if not path: + path = '/' + c['MOIN_ID']['path'] = path # Set expires for older clients c['MOIN_ID']['expires'] = request.httpDate(when=expires, rfc='850') return c.output()