Skip to content

Commit

Permalink
Remove urlencode from getMessage
Browse files Browse the repository at this point in the history
Removed urlencode from getMessage for DC 0 and 1 because we receive messages like Your+name+is+Smith
  • Loading branch information
calinrada committed Aug 18, 2014
1 parent 57ab59b commit 492c27d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/SmsSender/Provider/CardboardfishProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,11 +401,11 @@ protected function checkForStatusResult($result)
protected function getMessage($message, $data_coding_scheme = null)
{
if (null === $data_coding_scheme || 1 === $data_coding_scheme) {
return urlencode(self::GSMEncode($message));
return self::GSMEncode($message);
}

if (0 === $data_coding_scheme) {
return urlencode(self::GSMEncode($message));
return self::GSMEncode($message);
}

return urlencode($message);
Expand Down

0 comments on commit 492c27d

Please sign in to comment.