liquid_feedback_frontend
changeset 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 | de8602f8d9bb | 
| children | 394e264f9f2b | 
| files | app/main/index/_action/register.lua | 
   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 }