Lagrange [work/v1.17]

DocumentWidget: Fixed appearance of Trust button

=> 51879fdbfd158fcd4d66c66c8d7b25f1b5991123

diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 448398b1..49ac9fb5 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -2843,9 +2843,9 @@ static iBool handleCommand_DocumentWidget_(iDocumentWidget *d, const char *cmd)
         const char *unchecked       = red_ColorEscape "\u2610";
         const char *checked         = green_ColorEscape "\u2611";
         const iBool haveFingerprint = (d->certFlags & haveFingerprint_GmCertFlag) != 0;
-        const iBool canTrust =
-            (d->certFlags == (available_GmCertFlag | haveFingerprint_GmCertFlag |
-                              timeVerified_GmCertFlag /* | domainVerified_GmCertFlag*/));
+        const int requiredForTrust = (available_GmCertFlag | haveFingerprint_GmCertFlag |
+                                      timeVerified_GmCertFlag);
+        const iBool canTrust = ((d->certFlags & requiredForTrust) == requiredForTrust);
         const iRecentUrl *recent = findUrl_History(d->mod.history, d->mod.url);
         const iString *meta = &d->sourceMime;
         if (recent && recent->cachedResponse) {
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.17/cdiff/51879fdbfd158fcd4d66c66c8d7b25f1b5991123
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
285.374431 milliseconds
Gemini-to-HTML Time
0.224414 milliseconds

This content has been proxied by September (ba2dc).