Fix endless running loop for b0rken ADIF tags

pull/2774/head
phl0 2023-12-05 10:14:46 +01:00
rodzic 7f9b1e7193
commit c571bfc844
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 48EA1E640798CA9A
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -153,6 +153,10 @@ class ADIF_Parser
{
$tag_name = $tag_name.mb_substr($record, $a, 1, "UTF-8"); //append this char to the tag name
$a++;
// Prevent iterating $a past record length
if ($a == mb_strlen($record, "UTF-8")) {
return;
}
};
$a++; //iterate past the colon
while(mb_substr($record, $a, 1, "UTF-8") != '>' && mb_substr($record, $a, 1, "UTF-8") != ':')