From b8352b2290c364700f561039f5f2b051fb25b3c8 Mon Sep 17 00:00:00 2001 From: scheibling Date: Tue, 22 Jun 2021 00:32:14 +0200 Subject: [PATCH] Update FreeMobileSMS.php - Fix encoding bug 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), ) ));