summaryrefslogtreecommitdiffstats
path: root/src/jsonserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/jsonserver.cpp')
-rw-r--r--src/jsonserver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jsonserver.cpp b/src/jsonserver.cpp
index 5a307a3..0063f11 100644
--- a/src/jsonserver.cpp
+++ b/src/jsonserver.cpp
@@ -498,9 +498,9 @@ SchemaValidator *JsonServer::outboundValidator()
*/
void JsonServer::initSchemaValidation()
{
- QByteArray szInboundPath(qgetenv("JSONSERVER_SCHEMA_INBOUND_PATH"));
- QByteArray szOutboundPath(qgetenv("JSONSERVER_SCHEMA_OUTBOUND_PATH"));
- QString strSchemaControl(qgetenv("JSONSERVER_SCHEMA_CONTROL")); // "warn","drop" or "warn":"drop"
+ QString szInboundPath = QString::fromLocal8Bit(qgetenv("JSONSERVER_SCHEMA_INBOUND_PATH"));
+ QString szOutboundPath = QString::fromLocal8Bit(qgetenv("JSONSERVER_SCHEMA_OUTBOUND_PATH"));
+ QString strSchemaControl = QString::fromLocal8Bit(qgetenv("JSONSERVER_SCHEMA_CONTROL")); // "warn","drop" or "warn":"drop"
if (!strSchemaControl.isEmpty())
{