Module: deluge
Branch: master
Commit: b0a0574ae092c9587024a933438ad99dbd30a63f
Author: Motiejus Jakštys <>
Date: Fri Feb 4 19:37:42 2011 +0000
Apply patch from #1194
---
deluge/ui/web/auth.py | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/deluge/ui/web/auth.py b/deluge/ui/web/auth.py
index 101bc62..699133c 100644
--- a/deluge/ui/web/auth.py
+++ b/deluge/ui/web/auth.py
@@ -135,8 +135,9 @@ class Auth(JSONComponent):
expires, expires_str = make_expires(config["session_timeout"])
checksum = str(make_checksum(session_id))
+ base = str(component.get("Web").get_config()["base"])
request.addCookie('_session_id', session_id + checksum,
- path="/json", expires=expires_str)
+ path=base+"json", expires=expires_str)
log.debug("Creating session for %s", login)
config = component.get("DelugeWeb").config
@@ -232,8 +233,9 @@ class Auth(JSONComponent):
session["expires"] = expires
_session_id = request.getCookie("_session_id")
+ base = str(component.get("Web").get_config()["base"])
request.addCookie('_session_id', _session_id,
- path="/json", expires=expires_str)
+ path=base+"json", expires=expires_str)
if method:
if not hasattr(method, "_json_export"):
--
You received this message because you are subscribed to the Google Groups
"deluge-commit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/deluge-commit?hl=en.