Skip to content

Commit

Permalink
fix some issue and fixed sql injections
Browse files Browse the repository at this point in the history
  • Loading branch information
nahid committed Jun 20, 2016
1 parent cb64cb9 commit bc7e549
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -214,3 +214,9 @@ This method is used for permanently delete all conversations
```php
boolean deleteConversations($conversationId)
```


#### Special Thanks To
[Shipu Ahamed](https://github.com/shipu)

Thanks :)
7 changes: 6 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,9 @@ Version: 1.1.2
3. Make getInbox method easier. Now you just call getInbox() instead of getInbox($userId);
4. Add new dependency Carbon/Carbon
5. Now you can get message date as like facebook. Example: 3 Mins ago. We are add an imaginary attribut. So you can call it by $message->time_ago
6. And improve some performance
6. And improve some performance

Version: 1.1.3
==================
1. Fixed newConversation's parameter related issue
2. Fixed SQL injection by ptondereau
2 changes: 1 addition & 1 deletion src/Talk.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public function sendMessageByUserId($receiverId, $message)
return $message;
}

$convId = $this->newConversation($this->authUserId, $receiverId);
$convId = $this->newConversation($receiverId);
$message = $this->makeMessage($convId, $message);
return $message;
}
Expand Down

0 comments on commit bc7e549

Please sign in to comment.