# HG changeset patch # User bsw/jbe # Date 1269536642 -3600 # Node ID df5392f114e233d25925f84d3932d0479747f4e8 # Parent 8e9436ea3017fcab2cc92da73aed24eca8a8d088 Use new WebMCP function request.set_cookie{...} to secure cookies; Display correct status of cancelled initiatives diff -r 8e9436ea3017 -r df5392f114e2 app/main/_filter/20_session.lua --- a/app/main/_filter/20_session.lua Mon Mar 15 03:10:14 2010 +0100 +++ b/app/main/_filter/20_session.lua Thu Mar 25 18:04:02 2010 +0100 @@ -3,7 +3,10 @@ end if not app.session then app.session = Session:new() - cgi.add_header('Set-Cookie: liquid_feedback_session=' .. app.session.ident .. '; path=/' ) + request.set_cookie{ + name = "liquid_feedback_session", + value = app.session.ident + } end request.set_csrf_secret(app.session.additional_secret) diff -r 8e9436ea3017 -r df5392f114e2 app/main/initiative/_list_element.lua --- a/app/main/initiative/_list_element.lua Mon Mar 15 03:10:14 2010 +0100 +++ b/app/main/initiative/_list_element.lua Thu Mar 25 18:04:02 2010 +0100 @@ -88,7 +88,7 @@ { field_attr = { style = "width: 110px; padding: 0;"}, content = function() - if initiative.issue.accepted and initiative.issue.closed then + if initiative.issue.fully_frozen and initiative.issue.closed then if initiative.issue.ranks_available then if initiative.negative_votes and initiative.positive_votes then local max_value = initiative.issue.voter_count