X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/01cdd74060b063287784d3aff7f9f861a404b789..8d7e73beecd0d372eb59ad74bf60e25f67013201:/stglibs/srvconf.lib/parsers/get_admin.cpp

diff --git a/stglibs/srvconf.lib/parsers/get_admin.cpp b/stglibs/srvconf.lib/parsers/get_admin.cpp
index 8f775d06..29e35ba7 100644
--- a/stglibs/srvconf.lib/parsers/get_admin.cpp
+++ b/stglibs/srvconf.lib/parsers/get_admin.cpp
@@ -45,9 +45,10 @@ return true;
 
 } // namespace STG
 
-GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d)
+GET_ADMIN::PARSER::PARSER(CALLBACK f, void * d, const std::string & e)
     : callback(f),
       data(d),
+      encoding(e),
       depth(0),
       parsingAnswer(false)
 {
@@ -104,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;