diff options
author | Ted Trask <ttrask01@yahoo.com> | 2009-12-28 10:32:40 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2009-12-28 10:32:40 +0000 |
commit | 2678d43e1f155b2b692c729bb0470967072a8d58 (patch) | |
tree | 3eb10f930770897e028bac3079d7eb46e5a481c8 /app/acf-util | |
parent | bd7a0266eb07cb8859fa7518f0000ef0240923d6 (diff) | |
download | acf-core-2678d43e1f155b2b692c729bb0470967072a8d58.tar.bz2 acf-core-2678d43e1f155b2b692c729bb0470967072a8d58.tar.xz |
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.
Diffstat (limited to 'app/acf-util')
-rw-r--r-- | app/acf-util/logon-controller.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |