]> git.stg.codes - stg.git/blobdiff - stglibs/srvconf.lib/parsers/get_corp.cpp
Merge branch 'stg-2.409-radius'
[stg.git] / stglibs / srvconf.lib / parsers / get_corp.cpp
index 339d1eb2f6ccc9f80b8a817a4f06ba537b530f4c..732a4d697abab779aa37f950944512833d3c3fb1 100644 (file)
 
 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.";
 }