From 79adf551b90e1703dcf6b94fa5cf811b2df87544 Mon Sep 17 00:00:00 2001 From: Laetitia Fesselier Date: Mon, 14 Jun 2021 11:29:50 -0400 Subject: [PATCH] [API] Add support for visit label name with space --- modules/api/php/endpoints/candidate/candidate.class.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/api/php/endpoints/candidate/candidate.class.inc b/modules/api/php/endpoints/candidate/candidate.class.inc index 16fbd5d44d3..b76cc3b87b3 100644 --- a/modules/api/php/endpoints/candidate/candidate.class.inc +++ b/modules/api/php/endpoints/candidate/candidate.class.inc @@ -95,7 +95,7 @@ class Candidate extends Endpoint implements \LORIS\Middleware\ETagCalculator } // Delegate to sub-endpoints - $visit_label = array_shift($pathparts); + $visit_label = urldecode(array_shift($pathparts)); $newrequest = $request ->withAttribute('pathparts', $pathparts);