From 8dd5e956a76ab31d2b684c981cc75540f1216156 Mon Sep 17 00:00:00 2001 From: abarrau Date: Thu, 30 Nov 2023 23:43:50 +0100 Subject: [PATCH] fix for qslmsg with not accepted caracter --- application/controllers/Eqsl.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/Eqsl.php b/application/controllers/Eqsl.php index d5d52e9cf..76c266b6f 100644 --- a/application/controllers/Eqsl.php +++ b/application/controllers/Eqsl.php @@ -295,6 +295,7 @@ function generateAdif($qsl, $data) { "_" = 5F "-" = 2D "." = 2E + "&" = 26 */ $adif .= "%3C"; @@ -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"; }