Fixed issue where sometimes EOH was skipped
这个提交包含在:
父节点
6cc0dea243
当前提交
e0851324ff
共有 2 个文件被更改,包括 11 次插入 和 1 次删除
|
|
@ -144,6 +144,7 @@ class adif extends CI_Controller {
|
||||||
break;
|
break;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
$this->logbook_model->import($record);
|
$this->logbook_model->import($record);
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,16 @@ class ADIF_Parser
|
||||||
|
|
||||||
public function initialize() //this function locates the <EOH>
|
public function initialize() //this function locates the <EOH>
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
|
$eoh_upper = stripos($this->data, "<EOH>");
|
||||||
|
|
||||||
|
if($eoh_upper == true) {
|
||||||
|
$pos = stripos($this->data, "<EOH>");;
|
||||||
|
} else {
|
||||||
$pos = stripos($this->data, "<eoh>");
|
$pos = stripos($this->data, "<eoh>");
|
||||||
|
}
|
||||||
|
|
||||||
if($pos == false) //did we find the end of headers?
|
if($pos == false) //did we find the end of headers?
|
||||||
{
|
{
|
||||||
echo "Error: Adif_Parser Already Initialized or No <EOH> in ADIF File";
|
echo "Error: Adif_Parser Already Initialized or No <EOH> in ADIF File";
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用