diff --git a/lib/Alchemy/Phrasea/Controller/Admin/RootController.php b/lib/Alchemy/Phrasea/Controller/Admin/RootController.php index 404460ac30..0c231718be 100644 --- a/lib/Alchemy/Phrasea/Controller/Admin/RootController.php +++ b/lib/Alchemy/Phrasea/Controller/Admin/RootController.php @@ -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(); }