X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/64b687f8ec36a103865044613cb0f42f98aeda3a..d1d65fe3185a6c2178bbca46e9f409bd8d747c7f:/stglibs/srvconf.lib/parsers/get_corp.cpp?ds=inline diff --git a/stglibs/srvconf.lib/parsers/get_corp.cpp b/stglibs/srvconf.lib/parsers/get_corp.cpp index 339d1eb2..732a4d69 100644 --- a/stglibs/srvconf.lib/parsers/get_corp.cpp +++ b/stglibs/srvconf.lib/parsers/get_corp.cpp @@ -28,9 +28,10 @@ using namespace STG; -GET_CORP::PARSER::PARSER(CALLBACK f, void * d) +GET_CORP::PARSER::PARSER(CALLBACK f, void * d, const std::string & e) : callback(f), data(d), + encoding(e), depth(0), parsingAnswer(false) { @@ -92,6 +93,6 @@ if (strcasecmp(el, "corp") == 0) //----------------------------------------------------------------------------- void GET_CORP::PARSER::ParseCorpParams(const char * el, const char ** attr) { -if (!TryParse(propertyParsers, ToLower(el), attr)) +if (!TryParse(propertyParsers, ToLower(el), attr, encoding)) error = "Invalid parameter."; }