Better handle utf8 messages

Signed-off-by: Łukasz <l.szczepanski@webd.pl>
This commit is contained in:
Łukasz 2020-12-02 23:49:45 +01:00
parent 84e7e634cd
commit 22c1d7c3f9
1 changed files with 1 additions and 2 deletions

View File

@ -39,7 +39,6 @@ class PromoSMS extends Core
* @var string $this->password
* @var array $this->recipients
* @var array $headers
* @var array $this->originator
*
* @var resource $curl
* @var string $err
@ -69,7 +68,7 @@ class PromoSMS extends Core
CURLOPT_POST => true,
CURLOPT_HTTPHEADER => $headers,
CURLOPT_POSTFIELDS => http_build_query(array(
'text' => urlencode($message),
'text' => htmlspecialchars($message),
'type' => 1,
'recipients' => $this->recipients,
))