Update FreeMobileSMS.php - Fix encoding bug

Fix the URL encoding by changing urlencode to rawurlencode, since the former uses + instead of %20 to encode an URL and is meant for form submissions. Rawurlencode is meant for creating URLs, and should fix bug #1120
This commit is contained in:
scheibling 2021-06-22 00:32:14 +02:00 committed by GitHub
parent 32fcb8b0e8
commit b8352b2290
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ class FreeMobileSMS extends Core
array(
"user" => $this->username,
"pass" => $this->password,
"msg" => urlencode($message),
"msg" => rawurlencode($message),
)
));