globaleaks/GlobaLeaks — Issue #115: receipt + redirect bug
Author: vecna
Created: 2011-12-30 11:52:34+00:00
State: open
Labels: Bug

default.py controller, at the end of the code, the redirect, don't work anymore on firefox neither in chrome. using the url printed by hand, it works.

def index():
"""
Controller for GlobaLeaks index page
"""
import hashlib

tulip_url = None

if request.vars:
req = request.vars
try:
leak_number = req.Receipt.replace(' ', '')
tulip_url = hashlib.sha256(leak_number).hexdigest()
print "/globaleaks/tulip/status/" + tulip_url
redirect("/globaleaks/tulip/status/" + tulip_url)