diff options
author | cyBerta <cyberta@riseup.net> | 2018-02-20 15:17:06 +0100 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2018-02-20 15:17:06 +0100 |
commit | c6c9ca844a50d9469e632a3356389f08e7f6f455 (patch) | |
tree | 2b9980121f115bd72ad34e3515b5c2e303191719 /app/src/production/java | |
parent | 0e762668e0be37d653d5c65c387eb16be8910f50 (diff) |
#8853 show 'It doesn\'t seem to be a Bitmask provider' if entered URL is crap
Diffstat (limited to 'app/src/production/java')
-rw-r--r-- | app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java index de50c170..885d69db 100644 --- a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java +++ b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java @@ -123,7 +123,7 @@ public class ProviderApiManager extends ProviderApiManagerBase { providerDotJsonString = downloadFromApiUrlWithProviderCA("/provider.json", caCert, providerDefinition); } - if (!isValidJson(providerDotJsonString)) { + if (ConfigHelper.checkErroneousDownload(providerDotJsonString) || !isValidJson(providerDotJsonString)) { setErrorResult(result, malformed_url, null); return result; } |