Relaxed the test for accepting adi/adif file as valid ADIF
    too many other logbook programs not in compliance.
    Minimal test is for file to contain at least one adif field
    as "<call:", case insignificant
pull/2/head
David Freese 2009-01-05 15:45:40 -06:00
rodzic dbfc72f6e9
commit 495ac85df0
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -130,7 +130,8 @@ void cAdifIO::readFile (const char *fname, cQsoDb *db) {
fread (buff, filesize, 1, adiFile);
fclose (adiFile);
if (filesize == 0 || (strstr( buff, "<ADIF_VER")) == 0) {
// relaxed file integrity test to all importing from non conforming log programs
if (filesize == 0 || (strcasestr( buff, "<CALL:")) == 0) { //"<ADIF_VER")) == 0) {
fl_message("Not an ADIF log file");
return;
}