Merge pull request #21 from int2001/flef
Added xss_clean and null-exception-handling to grid
这个提交包含在:
当前提交
8cfb5e71f1
共有 1 个文件被更改,包括 3 次插入 和 3 次删除
|
|
@ -289,10 +289,10 @@ class Logbook_model extends CI_Model {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Decide whether its single gridsquare or a multi which makes it vucc_grids
|
// Decide whether its single gridsquare or a multi which makes it vucc_grids
|
||||||
if (strpos(trim($this->input->post('locator')), ',') !== false) {
|
if (strpos(trim(xss_clean($this->input->post('locator')) ?? ''), ',') !== false) {
|
||||||
$data['COL_VUCC_GRIDS'] = strtoupper(trim($this->input->post('locator')));
|
$data['COL_VUCC_GRIDS'] = strtoupper(trim(xss_clean($this->input->post('locator')) ?? ''));
|
||||||
} else {
|
} else {
|
||||||
$data['COL_GRIDSQUARE'] = strtoupper(trim($this->input->post('locator')));
|
$data['COL_GRIDSQUARE'] = strtoupper(trim(xss_clean($this->input->post('locator')) ?? ''));
|
||||||
}
|
}
|
||||||
|
|
||||||
// if eQSL username set, default SENT & RCVD to 'N' else leave as null
|
// if eQSL username set, default SENT & RCVD to 'N' else leave as null
|
||||||
|
|
|
||||||
正在加载…
在新工单中引用