Skip to content

Commit

Permalink
add url encode
Browse files Browse the repository at this point in the history
  • Loading branch information
aynsix committed Sep 6, 2023
1 parent b40a537 commit 8c4233b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Alchemy/Phrasea/Controller/Admin/RootController.php
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ public function getESRecord(Request $request)
{
$client = new Client();
$options = $this->app['conf']->get(['main', 'search-engine', 'options']);
$uri = $options['host'] . ":" . $options['port'] . "/" . $options['index'] . "/record/" . $request->query->get('databoxId') . "_" . $request->query->get('recordId');
$uri = $options['host'] . ":" . $options['port'] . "/" . urlencode($options['index']) . "/record/" . urlencode($request->query->get('databoxId')) . "_" . urlencode($request->query->get('recordId'));

return $client->get($uri, ['http_errors' => false])->getBody()->getContents();
}
Expand Down

0 comments on commit 8c4233b

Please sign in to comment.