From dd16b8216254049d68d333a75105b0f103011ae2 Mon Sep 17 00:00:00 2001 From: Dan Breslau Date: Tue, 25 Oct 2016 17:24:30 -0400 Subject: [PATCH] Work around a Portal bug that littered some credential files with cruft in front of the CA Certificate --- src/moonshot-id.vala | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/moonshot-id.vala b/src/moonshot-id.vala index 3a0f960..dec6777 100644 --- a/src/moonshot-id.vala +++ b/src/moonshot-id.vala @@ -66,6 +66,13 @@ public class TrustAnchor : Object // If we're reading from store, this will be overridden (see set_datetime_added) _datetime_added = ""; + + // Work around a Portal bug that littered some credential files with this cruft. + string cruft = +""""""; + _ca_cert = _ca_cert.replace(cruft, ""); + stdout.printf("ca_cert is now " + _ca_cert + "\n"); } public TrustAnchor.empty() { -- 2.1.4