diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-05-15 10:01:27 -0400 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-05-15 10:01:27 -0400 |
commit | ed7ac9ac047a56540dbc6a93a478e8c7bebd720b (patch) | |
tree | 94969117ee9fb430b4a2496509a3b74685024c87 | |
parent | 14e0155c885cea2494d1cd53999031fdf6bdb7c7 (diff) | |
download | acf-core-ed7ac9ac047a56540dbc6a93a478e8c7bebd720b.tar.bz2 acf-core-ed7ac9ac047a56540dbc6a93a478e8c7bebd720b.tar.xz |
Modify package.path to prevent loading lua modules from .
-rwxr-xr-x | lua/mvc.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lua/mvc.lua b/lua/mvc.lua index 174766c..17b750e 100755 --- a/lua/mvc.lua +++ b/lua/mvc.lua @@ -12,6 +12,8 @@ format = require("acf.format") -- For security, set the path posix.setenv("PATH", "/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin") +-- Adjust the package.path to remove . +package.path = string.gsub(package.path, ";?%./%?%.lua", "") mymodule.mvc = {} |