Fix #550 - Bug when sending FreeMobileSMS

This commit is contained in:
AUBERT Mathieu 2018-03-01 00:23:23 +01:00 committed by Timz99
parent 08eb9a55f7
commit ad1ca57b44
No known key found for this signature in database
GPG Key ID: 4D8268DC68E8339D
1 changed files with 1 additions and 1 deletions

View File

@ -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);