Skip to content

Commit

Permalink
[API] urldecode visit label from url (#7478)
Browse files Browse the repository at this point in the history
Handle characters that must be urlencoded (such as a space) in the API path for visit labels.
  • Loading branch information
laemtl committed Jun 14, 2021
1 parent 12041ad commit 4bf03d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/api/php/endpoints/candidate/candidate.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 4bf03d9

Please # to comment.