[API] Add QSO Fixes bug if string contains the whole ADIF header

这个提交包含在:
Peter Goodhall 2023-04-03 16:47:21 +01:00
父节点 f13657aaa9
当前提交 acc6e9ab72

查看文件

@ -119,7 +119,15 @@ class ADIF_Parser
public function feed($input_data) //allows the parser to be fed a string
{
$this->data = $input_data;
if (strpos($input_data, "<EOH>") !== false) {
$arr=explode("<EOH>",$input_data);
$newstring = $arr[1];
$this->data = $newstring;
} else {
$this->data = $input_data;
}
$this->datasplit = preg_split("/<eor>/i", mb_substr($this->data, $this->i, NULL, "UTF-8"));
}