webmcp
diff framework/env/param/get_all_cgi.lua @ 91:2f8d8edd1836
URL parsing inside WebMCP to simplify webserver configuration
| author | jbe |
|---|---|
| date | Wed Oct 10 17:41:46 2012 +0200 (2012-10-10) |
| parents | 9fdfb27f8e67 |
| children | 774a891dc74f |
line diff
1.1 --- a/framework/env/param/get_all_cgi.lua Tue Aug 21 00:59:08 2012 +0200 1.2 +++ b/framework/env/param/get_all_cgi.lua Wed Oct 10 17:41:46 2012 +0200 1.3 @@ -1,20 +1,13 @@ 1.4 --[[-- 1.5 -params = -- table with all non-list parameters 1.6 +params = 1.7 param.get_all_cgi() 1.8 1.9 -This function returns a table with all non-list GET/POST parameters (except internal parameters like "_webmcp_id"). 1.10 +Deprecated. Alias for param.get_all_raw(). 1.11 1.12 --]]-- 1.13 1.14 -function param.get_all_cgi() 1.15 - local result = {} 1.16 - for key, value in pairs(cgi.params) do -- TODO: exchanged params too? 1.17 - if 1.18 - (not string.match(key, "^_webmcp_")) and 1.19 - (not string.match(key, "%[%]$")) 1.20 - then 1.21 - result[key] = value 1.22 - end 1.23 - end 1.24 - return result 1.25 +-- TODO: Remove this function. 1.26 + 1.27 +function param.get_all_raw() 1.28 + return param.get_all_raw() 1.29 end