Skip to content

Commit

Permalink
fix for qslmsg with not accepted caracter
Browse files Browse the repository at this point in the history
  • Loading branch information
abarrau committed Nov 30, 2023
1 parent e19f9bc commit 8dd5e95
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion application/controllers/Eqsl.php
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,7 @@ function generateAdif($qsl, $data) {
"_" = 5F
"-" = 2D
"." = 2E
"&" = 26
*/

$adif .= "%3C";
Expand Down Expand Up @@ -422,12 +423,13 @@ function generateAdif($qsl, $data) {

// adding qslmsg if it isn't blank
if ($qsl['COL_QSLMSG'] != ''){
$qsl['COL_QSLMSG'] = str_replace(array(chr(10),chr(13)),array(' ',' '),$qsl['COL_QSLMSG']);
$adif .= "%3C";
$adif .= "QSLMSG";
$adif .= "%3A";
$adif .= strlen($qsl['COL_QSLMSG']);
$adif .= "%3E";
$adif .= $qsl['COL_QSLMSG'];
$adif .= str_replace('&','%26',$qsl['COL_QSLMSG']);
$adif .= "%20";
}

Expand Down

0 comments on commit 8dd5e95

Please sign in to comment.