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 6b575ad commit 1a10622Copy full SHA for 1a10622
1 file changed
src/yvalve/PluginManager.cpp
@@ -782,6 +782,12 @@ namespace
782
783
explicit PluginLoadInfo(const char* pluginName)
784
{
785
+ // check for directories in pluginName
786
+ PathName path, file;
787
+ PathUtils::splitLastComponent(path, file, pluginName);
788
+ if (path.hasData())
789
+ (Arg::Gds(isc_random) << "Plugin name should not contain directory separator and path component").raise();
790
+
791
// define default values for plugin ...
792
curModule = fb_utils::getPrefix(IConfigManager::DIR_PLUGINS, pluginName);
793
regName = pluginName;
0 commit comments