liquid_feedback_frontend

diff 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 diff
     1.1 --- a/env/util/trim.lua	Sat Jan 02 12:00:00 2010 +0100
     1.2 +++ b/env/util/trim.lua	Mon Jan 04 12:00:00 2010 +0100
     1.3 @@ -1,3 +1,3 @@
     1.4  function util.trim(string)
     1.5 -  return (string:gsub("^%s*", ""):gsub("%s*$", ""))
     1.6 +  return (string:gsub("^%s*", ""):gsub("%s*$", ""):gsub("%s+", " "))
     1.7  end
     1.8 \ No newline at end of file

Impressum / About Us