From: Maxim Mamontov Date: Mon, 22 Sep 2014 20:26:29 +0000 (+0300) Subject: Fixed parsing admins in srvconf. X-Git-Url: https://git.stg.codes/stg.git/commitdiff_plain/d4bb6b1e2cb9698e1153f70394fd2ded364bd043 Fixed parsing admins in srvconf. --- diff --git a/stglibs/srvconf.lib/parsers/get_admin.cpp b/stglibs/srvconf.lib/parsers/get_admin.cpp index 3d0e135e..29e35ba7 100644 --- a/stglibs/srvconf.lib/parsers/get_admin.cpp +++ b/stglibs/srvconf.lib/parsers/get_admin.cpp @@ -105,7 +105,7 @@ if (strcasecmp(el, "admin") == 0) { parsingAnswer = true; for (const char ** pos = attr; *pos != NULL; pos = pos + 2) - if (!TryParse(propertyParsers, ToLower(*pos), pos, *pos)) + if (!TryParse(propertyParsers, ToLower(*pos), pos, encoding, *pos)) { error = std::string("Invalid parameter '") + *pos + "'."; break;