Merge and robustify (??) iggy's commit.
authorplugd <plugd@thelambdalab.xyz>
Thu, 6 Mar 2025 14:02:25 +0000 (15:02 +0100)
committerplugd <plugd@thelambdalab.xyz>
Thu, 6 Mar 2025 14:02:25 +0000 (15:02 +0100)
1  2 
elpher.el

diff --cc elpher.el
+++ b/elpher.el
@@@ -1473,7 -1473,7 +1473,7 @@@ having URLs begining with URL-PREFIX.
                        #'string-prefix-p)))
      (if entry
          (let ((cert-url-prefix (car entry))
-               (cert-name (cadr entry)))
 -              (cert-name (cdr entry)))
++              (cert-name (if (consp (cdr entry)) (cadr entry) (cdr entry))))
            (message "Using certificate \"%s\" specified in elpher-certificate-map with prefix \"%s\""
                     cert-name cert-url-prefix)
            (elpher-get-existing-certificate cert-name cert-url-prefix))