From: Dan Breslau Date: Tue, 25 Oct 2016 21:24:30 +0000 (-0400) Subject: Work around a Portal bug that littered some credential files with cruft in front... X-Git-Tag: v0.9.6~5 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=moonshot-ui.git;a=commitdiff_plain;h=dd16b8216254049d68d333a75105b0f103011ae2 Work around a Portal bug that littered some credential files with cruft in front of the CA Certificate --- 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() {