mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 15:15:50 +08:00
refs #911, utility functions for cut and paste JSON
This commit is contained in:
committed by
Mathew Sutcliffe
parent
6c752b81f5
commit
b785e32256
@@ -126,7 +126,7 @@ namespace BlackCore
|
||||
CLogMessage(this).error("Authentication failed, no response from %1") << urlString;
|
||||
return;
|
||||
}
|
||||
if (!json.startsWith('{') || !json.endsWith('}'))
|
||||
if (!Json::looksLikeJson(json))
|
||||
{
|
||||
CLogMessage(this).error("Illegal JSON object: %1") << CNetworkUtils::removeHtmlPartsFromPhpErrorMessage(json);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user