liquid_feedback_frontend
diff app/main/index/_action/register.lua @ 237:08705cd76b3a
Trim submitted invite codes before further procesing
| author | Ingo Bormuth <mail@ibormuth.de> |
|---|---|
| date | Sun Nov 27 13:34:45 2011 +0100 (2011-11-27) |
| parents | 9345ea6af3b2 |
| children | c587d8762e62 |
line diff
1.1 --- a/app/main/index/_action/register.lua Sun Nov 27 13:33:42 2011 +0100 1.2 +++ b/app/main/index/_action/register.lua Sun Nov 27 13:34:45 2011 +0100 1.3 @@ -1,4 +1,4 @@ 1.4 -local code = param.get("code") 1.5 +local code = util.trim(param.get("code")) 1.6 1.7 local invite_code = InviteCode:new_selector() 1.8 :add_where{ "code = ?", code }