diff options
Diffstat (limited to 'app/acf_www-controller.lua')
-rw-r--r-- | app/acf_www-controller.lua | 16 |
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"}) |