liquid_feedback_frontend

view env/util/trim.lua @ 9:0ee1e0c42d4c

Version beta5

Minor security fix: Added missing security filter for admin section. Reading of member listing including login names was possible for all users. Write access has not been possible though.

Changing of name and login is possible while a history of these changes is written and accessible by all users.

Statistics shown in area list

Trimming of user input also converts multiple whitespaces to single space character.
author bsw
date Mon Jan 04 12:00:00 2010 +0100 (2010-01-04)
parents 8d91bccab0bf
children de8602f8d9bb
line source
1 function util.trim(string)
2 return (string:gsub("^%s*", ""):gsub("%s*$", ""):gsub("%s+", " "))
3 end

Impressum / About Us