Added xss_clean and null-exception-handling to grid

这个提交包含在:
int2001 2023-11-10 06:44:14 +00:00
父节点 31e3162ad9
当前提交 c4d31e20cd
找不到此签名对应的密钥
GPG 密钥 ID: DFB1C13CD2DB037B

查看文件

@ -289,10 +289,10 @@ class Logbook_model extends CI_Model {
}
// Decide whether its single gridsquare or a multi which makes it vucc_grids
if (strpos(trim($this->input->post('locator')), ',') !== false) {
$data['COL_VUCC_GRIDS'] = strtoupper(trim($this->input->post('locator')));
if (strpos(trim(xss_clean($this->input->post('locator')) ?? ''), ',') !== false) {
$data['COL_VUCC_GRIDS'] = strtoupper(trim(xss_clean($this->input->post('locator')) ?? ''));
} 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