]> git.stg.codes - stg.git/commitdiff
Fixed parsing admins in srvconf.
authorMaxim Mamontov <faust.madf@gmail.com>
Mon, 22 Sep 2014 20:26:29 +0000 (23:26 +0300)
committerMaxim Mamontov <faust.madf@gmail.com>
Mon, 22 Sep 2014 20:26:29 +0000 (23:26 +0300)
stglibs/srvconf.lib/parsers/get_admin.cpp

index 3d0e135efa6a13f878d9d1ecb15469bf9e8a7c59..29e35ba7e4f3c891ac9f455cde70ea3dd8385842 100644 (file)
@@ -105,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;