We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7667f8b commit 001d049Copy full SHA for 001d049
src/yvalve/PluginManager.cpp
@@ -816,6 +816,12 @@ namespace
816
817
explicit PluginLoadInfo(const char* pluginName)
818
{
819
+ // check for directories in pluginName
820
+ PathName path, file;
821
+ PathUtils::splitLastComponent(path, file, pluginName);
822
+ if (path.hasData())
823
+ (Arg::Gds(isc_random) << "Plugin name should not contain directory separator and path component").raise();
824
+
825
// define default values for plugin ...
826
curModule = fb_utils::getPrefix(IConfigManager::DIR_PLUGINS, pluginName);
827
regName = pluginName;
0 commit comments