diff --git a/application/controllers/Lotw.php b/application/controllers/Lotw.php index 97403b15..e5be23f0 100644 --- a/application/controllers/Lotw.php +++ b/application/controllers/Lotw.php @@ -650,6 +650,9 @@ class Lotw extends CI_Controller { return "Temporary download directory ".dirname($file)." is not writable. Aborting!"; } file_put_contents($file, file_get_contents($lotw_url)); + if (file_get_contents($file, false, null, 0, 39) != "ARRL Logbook of the World Status Report") { + return "LotW downloading failed either due to it being down or incorrect logins."; + } ini_set('memory_limit', '-1'); $results = $this->loadFromFile($file, false);