From 0697c84b863f874be68378765784ae4920e88055 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Thu, 7 Dec 2023 01:18:24 +0100 Subject: [PATCH] make sure only requested callsign is shown --- application/models/Qslprint_model.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/models/Qslprint_model.php b/application/models/Qslprint_model.php index cd8878bf..1578f54c 100644 --- a/application/models/Qslprint_model.php +++ b/application/models/Qslprint_model.php @@ -137,7 +137,7 @@ class Qslprint_model extends CI_Model { $this->db->join('station_profile', 'station_profile.station_id = '.$this->config->item('table_name').'.station_id'); // always filter user. this ensures that no inaccesible QSOs will be returned $this->db->where('station_profile.user_id', $this->session->userdata('user_id')); - $this->db->where('COL_CALL like "%'.$callsign.'%"'); + $this->db->where('COL_CALL like "%/'.$callsign.'/%" OR COL_CALL like "%/'.$callsign.'" OR COL_CALL like "'.$callsign.'/%" OR COL_CALL = "'.$callsign.'"'); $this->db->where('coalesce(COL_QSL_SENT, "") not in ("R", "Q")'); $this->db->order_by("COL_DXCC", "ASC"); $this->db->order_by("COL_CALL", "ASC");