diff options
author | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 02:59:52 +0000 |
---|---|---|
committer | danieldg <danieldg@e03df62e-2008-0410-955e-edbf42e46eb7> | 2009-10-19 02:59:52 +0000 |
commit | 041401bc1fa01d5b1397b20847f8c95b8ea2a4f8 (patch) | |
tree | 36fce4af8a997c047aac0ddab4ab6bdae62e4ee6 /src/modules.cpp | |
parent | 076a56d8545dbdb1c975a9a85648b8c1d0345d5d (diff) |
Prevent path names from being specified in modules, and move moduledir to a <path> tag
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@11914 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules.cpp')
-rw-r--r-- | src/modules.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules.cpp b/src/modules.cpp index 2dafc8864..8957b4bb6 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -321,6 +321,9 @@ std::string& ModuleManager::LastError() bool ModuleManager::Load(const char* filename) { + /* Don't allow people to specify paths for modules, it doesn't work as expected */ + if (strchr(filename, '/')) + return false; /* Do we have a glob pattern in the filename? * The user wants to load multiple modules which * match the pattern. |