Do not upload to LoTW if signing failed

This commit is contained in:
phl0
2024-01-20 23:59:45 +01:00
parent 555c31aee6
commit f37d959010

View File

@@ -262,6 +262,11 @@ class Lotw extends CI_Controller {
// Build File to save
$adif_to_save = $this->load->view('lotw_views/adif_views/adif_export', $data, TRUE);
if (strpos($adif_to_save, '<SIGN_LOTW_V2.0:1:6>')) {
// Signing failed
echo "Signing failed.";
continue;
}
// create folder to store upload file
if (!file_exists('./uploads/lotw')) {
@@ -971,6 +976,7 @@ class Lotw extends CI_Controller {
}
} else {
log_message('error', 'Error signing LoTW log.');
return null;
}