Skip to content

Commit

Permalink
Merge pull request #35 from gdubost/feature/75414
Browse files Browse the repository at this point in the history
[FEATURE#75414] On encode la query des messages
  • Loading branch information
Guillaume DUBOST authored Jan 3, 2018
2 parents 3bec790 + e983c74 commit d5539e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/ConversationManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ public function __construct(Application $app = null)

public function findByQueryString($query, $from = 0, $size = 99999, $sort = "", $msg_query = "")
{
$query = urlencode($query);
$response = $this->fireRequest("GET", "/search?q={$query}&messages_query={$msg_query}&from={$from}&size={$size}&sort={$sort}");
$query = urlencode($query);
$msg_query = urlencode($msg_query);
$response = $this->fireRequest("GET", "/search?q={$query}&messages_query={$msg_query}&from={$from}&size={$size}&sort={$sort}");

$response["hits"] = array_map(
function ($hit) {
Expand Down

0 comments on commit d5539e2

Please sign in to comment.