From 4c290c3360ccad6250eb7ddb232a4da6f477e4d3 Mon Sep 17 00:00:00 2001 From: Kim Huebel Date: Thu, 5 Mar 2020 19:42:54 +0100 Subject: [PATCH] URL-Encoding fixed This fixes a problem with URL-Encoding of some entities with & in the name like Agalega & St Brandon Islands or similiar. Problem was, that the & was misinterpreted within the browser-url and does not show the correct results. --- application/models/Dxcc.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Dxcc.php b/application/models/Dxcc.php index 63c3fb1a7..3a0993fb5 100644 --- a/application/models/Dxcc.php +++ b/application/models/Dxcc.php @@ -191,7 +191,7 @@ class DXCC extends CI_Model { if ($postdata['worked'] != NULL) { $workedDXCC = $this->getDxccBandWorked($station_id, $band, $postdata); foreach ($workedDXCC as $wdxcc) { - $dxccMatrix[$wdxcc->dxcc][$band] = '
name.'"&Band="'. $band . '"\'>W
';; + $dxccMatrix[$wdxcc->dxcc][$band] = '
name).'"&Band="'. $band . '"\'>W
';; } } @@ -199,7 +199,7 @@ class DXCC extends CI_Model { if ($postdata['confirmed'] != NULL) { $confirmedDXCC = $this->getDxccBandConfirmed($station_id, $band, $postdata); foreach ($confirmedDXCC as $cdxcc) { - $dxccMatrix[$cdxcc->dxcc][$band] = '
name.'"&Band="'. $band . '"\'>C
';; + $dxccMatrix[$cdxcc->dxcc][$band] = '
name).'"&Band="'. $band . '"\'>C
';; } } }