From ad1ca57b44252cd832912ecc95b75c58d417a0cb Mon Sep 17 00:00:00 2001 From: AUBERT Mathieu <mathieu.aubert41@gmail.com> Date: Thu, 1 Mar 2018 00:23:23 +0100 Subject: [PATCH] Fix #550 - Bug when sending FreeMobileSMS --- 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 9f4cd0a4..36eafb06 100644 --- a/src/psm/Txtmsg/FreeMobileSMS.php +++ b/src/psm/Txtmsg/FreeMobileSMS.php @@ -40,7 +40,7 @@ class FreeMobileSMS extends Core { public function sendSMS($message) { $ch = curl_init(); - curl_setopt($ch, CURLOPT_URL, "https://smsapi.free-mobile.fr/sendmsg?user=$this->username&pass=$this->password&msg=$message"); + curl_setopt($ch, CURLOPT_URL, "https://smsapi.free-mobile.fr/sendmsg?user=$this->username&pass=$this->password&msg=" . urlencode( $message ) ); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_TIMEOUT, 10);