Merge pull request #2774 from phl0/fixB0rkenTags

Fix endless running loop for b0rken ADIF tags
这个提交包含在:
Andreas Kristiansen 2023-12-05 10:16:46 +01:00 提交者 GitHub
当前提交 d04d0b80af
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23

查看文件

@ -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") != ':')