diff options
author | Ted Trask <ttrask01@yahoo.com> | 2008-07-04 13:31:13 +0000 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2008-07-04 13:31:13 +0000 |
commit | ed164e591fcd52f77c66f629ff00c216e4278f86 (patch) | |
tree | 7af2d09c720ce3717949833a5137fa585f352daf /app/expert-html.lsp | |
parent | 060b3f4716e38a69d85ce104abbc21e384fb70a5 (diff) | |
download | acf-core-ed164e591fcd52f77c66f629ff00c216e4278f86.tar.bz2 acf-core-ed164e591fcd52f77c66f629ff00c216e4278f86.tar.xz |
Fixed expert page to work when prefix or controller has magic characters. Added public getenabled function to modelfunctions and made controllerfunctions work with it.
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@1273 ab2d0c66-481e-0410-8bed-d214d4d58bed
Diffstat (limited to 'app/expert-html.lsp')
-rw-r--r-- | app/expert-html.lsp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/expert-html.lsp b/app/expert-html.lsp index c4a76cd..3639f11 100644 --- a/app/expert-html.lsp +++ b/app/expert-html.lsp @@ -6,7 +6,8 @@ end ?> <? -local func = haserl.loadfile(page_info.viewfile:gsub(page_info.prefix..page_info.controller..".*$", "/") .. "filedetails-html.lsp") +local pattern = string.gsub(page_info.prefix..page_info.controller, "[%(%)%.%%%+%-%*%?%[%]%^%$]", "%%%1") +local func = haserl.loadfile(page_info.viewfile:gsub(pattern..".*$", "/") .. "filedetails-html.lsp") func(form, viewlibrary, page_info, session) ?> |