From 69c26b55f4c87376ead8e64382d50f1a5accf3d0 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Sat, 25 Nov 2023 11:49:39 +0100 Subject: [PATCH 1/1] Remove assumption that GDC serials always start with 'A' (apparently there are other prefixes too). --- src/wx/gdc_certificate_panel.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/wx/gdc_certificate_panel.cc b/src/wx/gdc_certificate_panel.cc index d78b1b56d..89aa3f44a 100644 --- a/src/wx/gdc_certificate_panel.cc +++ b/src/wx/gdc_certificate_panel.cc @@ -56,12 +56,8 @@ GDCCertificatePanel::do_download () { string serial = wx_to_std (_serial->GetValue()); trim(serial); - if (!serial.empty() && serial[0] == 'A') { - /* We're adding the A ourselves */ - serial = serial.substr(1); - } string url = String::compose( - "ftp://%1:%2@ftp.gdc-tech.com/SHA256/A%3.crt.pem", + "ftp://%1:%2@ftp.gdc-tech.com/SHA256/%3.crt.pem", Config::instance()->gdc_username().get(), Config::instance()->gdc_password().get(), serial -- 2.30.2