X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/474a9dc37f5085103d11cff3afa8642538f06a10..34d407f7df45b5faaa25a92a04e8582f95162f31:/stglibs/srvconf.lib/parsers/get_corp.cpp?ds=sidebyside 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."; }