Skip to content

Commit

Permalink
- Fixed a bug related to matching the message-id pattern.
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Marius Bub <daniel.bub@thebub.net>
  • Loading branch information
thebub committed Jun 13, 2012
1 parent 6e02ffb commit c099c67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2dm.php
Expand Up @@ -127,7 +127,7 @@ public function sendMessage($deviceRegistrationId, $message, $msgType) {

if ($response_info['http_code'] == 200) {
// Filter message-id or error from response
if(preg_match("/id=([a-z0-9_\-]+)/i", $response_data, $matches) == 1) {
if(preg_match("/id=([a-z0-9_%:\-]+)/i", $response_data, $matches) == 1) {

return $matches[1];

Expand Down

0 comments on commit c099c67

Please sign in to comment.