Fix endless running loop for b0rken ADIF tags
这个提交包含在:
父节点
7f9b1e7193
当前提交
c571bfc844
共有 1 个文件被更改,包括 4 次插入 和 0 次删除
|
|
@ -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
|
$tag_name = $tag_name.mb_substr($record, $a, 1, "UTF-8"); //append this char to the tag name
|
||||||
$a++;
|
$a++;
|
||||||
|
// Prevent iterating $a past record length
|
||||||
|
if ($a == mb_strlen($record, "UTF-8")) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
$a++; //iterate past the colon
|
$a++; //iterate past the colon
|
||||||
while(mb_substr($record, $a, 1, "UTF-8") != '>' && mb_substr($record, $a, 1, "UTF-8") != ':')
|
while(mb_substr($record, $a, 1, "UTF-8") != '>' && mb_substr($record, $a, 1, "UTF-8") != ':')
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用