#550 Fix bug when error sending

pull/555/head
mathieuaubert 2018-03-01 00:04:34 +01:00
parent f07cc23ab9
commit 046db05762
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);