From cd9d3580a60e4d9229ecaa3fc8145f9473964a6a Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Tue, 22 May 2007 09:17:13 +0000 Subject: [PATCH] adds trailing slash to module configuration path if missing git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@333 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmConfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core/AmConfig.cpp b/core/AmConfig.cpp index 2678bfc5..f01915fe 100644 --- a/core/AmConfig.cpp +++ b/core/AmConfig.cpp @@ -155,6 +155,8 @@ int AmConfig::readConfiguration() // plugin_config_path ModConfigPath = cfg.getParameter("plugin_config_path",ModConfigPath); + if(!ModConfigPath.empty() && (ModConfigPath[ModConfigPath.length()-1] != '/')) + ModConfigPath += '/'; // smtp_server SmtpServerAddress = cfg.getParameter("smtp_server",SmtpServerAddress);