From 2678d43e1f155b2b692c729bb0470967072a8d58 Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 28 Dec 2009 10:32:40 +0000 Subject: Removed redundant/buggy basename and dirname functions. Added parse_redir_string to www controller. Removed basename and dirname from mvc and fs, use posix functions instead. parse_path_info was buggy and used 2 ways, rewrote and created parse_redir_string for backwards parsing. --- app/acf-util/logon-controller.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/acf-util') diff --git a/app/acf-util/logon-controller.lua b/app/acf-util/logon-controller.lua index f1fa93d..165bedb 100644 --- a/app/acf-util/logon-controller.lua +++ b/app/acf-util/logon-controller.lua @@ -34,8 +34,8 @@ logon = function(self) if logon.value then -- only copy the logonredirect if redirecting to that page if logonredirect and cmdresult.value.redir.value then - local prefix, controller, action = self.parse_path_info("/"..cmdresult.value.redir.value) - if logonredirect.action == action and logonredirect.controller == controller then + local prefix, controller, action = self.parse_redir_string(cmdresult.value.redir.value) + if logonredirect.action == action and logonredirect.controller == controller and logonredirect.prefix == prefix then self.sessiondata.logonredirect = logonredirect end end -- cgit v1.2.3