From c70dc23211232cef41e5f6e0d4c3d0ea6afbfed1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Fri, 22 Mar 2019 13:39:29 +0200 Subject: [PATCH] Fix processing of path parameters Instead of the first character of the string being compared to the value the whole string was compared. --- server/core/config.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/core/config.cc b/server/core/config.cc index 45be52272..3f671ad6c 100644 --- a/server/core/config.cc +++ b/server/core/config.cc @@ -3052,7 +3052,7 @@ static bool is_path_parameter(const MXS_MODULE_PARAM* params, const char* name) static void process_path_parameter(std::string* param) { - if (param->empty() || param[0] != "/") + if (param->empty() || (*param)[0] != '/') { const char* mod_dir = get_module_configdir(); size_t size = param->length() + strlen(mod_dir) + 3;