diff options
author | Ted Trask <ttrask01@yahoo.com> | 2014-05-30 18:11:37 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2014-05-30 18:11:37 +0000 |
commit | 808a14774ed9ef0040f3e30ffc8af5dd3d786272 (patch) | |
tree | 24b5006ef2bad5840a96f9d229c22827ffda56d6 /app | |
parent | cec25addb66c6905470e7ba7e5ef3d1ff50de629 (diff) | |
download | acf-core-808a14774ed9ef0040f3e30ffc8af5dd3d786272.tar.bz2 acf-core-808a14774ed9ef0040f3e30ffc8af5dd3d786272.tar.xz |
Fixed bug in www controller redirect_to_referrer if the referrer is missing
Diffstat (limited to 'app')
-rw-r--r-- | app/acf_www-controller.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index b529e2f..a7cb42d 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -382,6 +382,7 @@ mymodule.dispatch = function (self, userprefix, userctlr, useraction) self.conf.controller = userctlr or "" self.conf.action = useraction or "" end + --self.logevent("WWW.dispatch "..self.conf.prefix..self.conf.controller.."/"..self.conf.action) -- This is for get / post data saved for after logon if self.sessiondata.logonredirect and self.conf.prefix == self.sessiondata.logonredirect.prefix @@ -534,7 +535,7 @@ mymodule.redirect_to_referrer = function(self, result) -- If we have a result, then we did something, so we might have to redirect if not ENV.HTTP_REFERER then -- If no referrer, we have a potential problem. - if not find_view(self.conf.appdir, self.conf.prefix, self.conf.controller, self.conf.action, self.conf.viewtype or "html") then + if not self.find_view(self.conf.appdir, self.conf.prefix, self.conf.controller, self.conf.action, self.conf.viewtype or "html") then -- Action does not have view, so redirect to default action for this controller. self:redirect() end |