Fix #550 - Bug when sending FreeMobileSMS

pull/682/head
AUBERT Mathieu 2018-03-01 00:23:23 +01:00 committed by Timz99
parent b584b2fc41
commit 5b90699814
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ class FreeMobileSMS extends Core {
public function sendSMS($message) { public function sendSMS($message) {
$ch = curl_init(); $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_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 10); curl_setopt($ch, CURLOPT_TIMEOUT, 10);