summaryrefslogtreecommitdiffstats
path: root/app/acf_www-controller.lua
diff options
context:
space:
mode:
authorTed Trask <ttrask01@yahoo.com>2008-07-12 15:57:36 +0000
committerTed Trask <ttrask01@yahoo.com>2008-07-12 15:57:36 +0000
commit02082d03de31af25beed17cf3d61ca513ea6f885 (patch)
tree34d3b187c326cf737c0684cb0654163e4accdbfd /app/acf_www-controller.lua
parent4522cd8af6efd114b79b48eeddfa9660cfb08716 (diff)
downloadacf-core-02082d03de31af25beed17cf3d61ca513ea6f885.tar.bz2
acf-core-02082d03de31af25beed17cf3d61ca513ea6f885.tar.xz
Fixed redirect_to_referrer with GET data. Moved handling of multi select from acf_www-controller to controllerfunctions. Fixed form ids containing '.'. Added new handle_clientdata function to controllerfunctions. Modified password-controller to use handle_clientdata for multi select to work.k
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1299 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/acf_www-controller.lua')
-rw-r--r--app/acf_www-controller.lua16
1 files changed, 1 insertions, 15 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua
index ce58893..cd8a49f 100644
--- a/app/acf_www-controller.lua
+++ b/app/acf_www-controller.lua
@@ -221,20 +221,6 @@ mvc.on_load = function (self, parent)
self.clientdata = FORM
self.conf.clientip = ENV.REMOTE_ADDR
- -- FIXME this is because multi selects don't work in haserl
- for name,oldtable in pairs(self.clientdata) do
- if type(oldtable) == "table" then
- -- Assume it's a sparse array, and remove blanks
- local newtable={}
- for x=1,table.maxn(oldtable) do
- if oldtable[x] then
- newtable[#newtable + 1] = oldtable[x]
- end
- end
- self.clientdata[name] = newtable
- end
- end
-
parent_exception_handler = parent.exception_handler
-- this sets the package path for us and our children
@@ -488,7 +474,7 @@ redirect_to_referrer = function(self, result)
-- might not have view. So redirect to default action for this controller.
self:redirect()
else
- local prefix, controller, action = self.parse_path_info(ENV.HTTP_REFERER)
+ local prefix, controller, action = self.parse_path_info(ENV.HTTP_REFERER:gsub("%?.*", ""))
if controller ~= self.conf.controller or action ~= self.conf.action then
self.sessiondata[self.conf.action.."result"] = result
error({type="redir_to_referrer"})