[API] Add QSO Fixes bug if string contains the whole ADIF header
这个提交包含在:
父节点
f13657aaa9
当前提交
acc6e9ab72
共有 1 个文件被更改,包括 9 次插入 和 1 次删除
|
|
@ -119,7 +119,15 @@ class ADIF_Parser
|
||||||
|
|
||||||
public function feed($input_data) //allows the parser to be fed a string
|
public function feed($input_data) //allows the parser to be fed a string
|
||||||
{
|
{
|
||||||
|
|
||||||
|
if (strpos($input_data, "<EOH>") !== false) {
|
||||||
|
$arr=explode("<EOH>",$input_data);
|
||||||
|
$newstring = $arr[1];
|
||||||
|
$this->data = $newstring;
|
||||||
|
} else {
|
||||||
$this->data = $input_data;
|
$this->data = $input_data;
|
||||||
|
}
|
||||||
|
|
||||||
$this->datasplit = preg_split("/<eor>/i", mb_substr($this->data, $this->i, NULL, "UTF-8"));
|
$this->datasplit = preg_split("/<eor>/i", mb_substr($this->data, $this->i, NULL, "UTF-8"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用