diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-25 11:49:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-26 11:34:31 +0100 |
| commit | 69c26b55f4c87376ead8e64382d50f1a5accf3d0 (patch) | |
| tree | b3305bfdd83b04ec05c8e8fc6811c69a16bf95f2 | |
| parent | 2356c4b0a69e2fbb1713a0c9bb3d9f6ef5144575 (diff) | |
Remove assumption that GDC serials always start with 'A' (apparently there are other prefixes too).
| -rw-r--r-- | src/wx/gdc_certificate_panel.cc | 6 |
1 files changed, 1 insertions, 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 |
