From e28192278c9b32d65444b5c893f2a8984fbd8a44 Mon Sep 17 00:00:00 2001 From: scheibling Date: Wed, 23 Jun 2021 22:47:27 +0200 Subject: [PATCH] Update FreeMobileSMS.php - Fix encoding bug (#1132) Fix the URL encoding by changing urlencode to rawurlencode, since the former uses + instead of %20 to encode an URL and is meant for form submissions. Rawurlencode is meant for creating URLs, and should fix bug #1120 --- src/psm/Txtmsg/FreeMobileSMS.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/psm/Txtmsg/FreeMobileSMS.php b/src/psm/Txtmsg/FreeMobileSMS.php index 43a7d2c0..bdfdd2eb 100644 --- a/src/psm/Txtmsg/FreeMobileSMS.php +++ b/src/psm/Txtmsg/FreeMobileSMS.php @@ -58,7 +58,7 @@ class FreeMobileSMS extends Core array( "user" => $this->username, "pass" => $this->password, - "msg" => urlencode($message), + "msg" => rawurlencode($message), ) ));