X-Git-Url: https://git.stg.codes/stg.git/blobdiff_plain/b3139bf3f37b3b0244efea8b4b5e5a7d0bc90095..3f023a72d0eedd982ba16401fbdff63dc5dddd4d:/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."; }