Skip to content

Commit

Permalink
Tracker: URL decode session cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
umbrae committed Feb 21, 2015
1 parent 6cf5272 commit 0850bd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def event_click():
relying on log files for event tracking and have a proper events endpoint.
"""
try:
session_str = request.cookies.get('reddit_session', '')
session_str = urllib.unquote(request.cookies.get('reddit_session', ''))
user_id = int(session_str.split(',')[0])
except ValueError:
user_id = None
Expand Down

0 comments on commit 0850bd3

Please sign in to comment.