# HG changeset patch # User Ingo Bormuth # Date 1322397285 -3600 # Node ID 08705cd76b3a5d1146428c7ddca5d50be8a89bac # Parent de8602f8d9bb7dd1487a72858ad07bd423c064e7 Trim submitted invite codes before further procesing diff -r de8602f8d9bb -r 08705cd76b3a app/main/index/_action/register.lua --- a/app/main/index/_action/register.lua Sun Nov 27 13:33:42 2011 +0100 +++ b/app/main/index/_action/register.lua Sun Nov 27 13:34:45 2011 +0100 @@ -1,4 +1,4 @@ -local code = param.get("code") +local code = util.trim(param.get("code")) local invite_code = InviteCode:new_selector() :add_where{ "code = ?", code }