Skip to content

Commit

Permalink
[API] Add support for project name with space
Browse files Browse the repository at this point in the history
  • Loading branch information
laemtl committed Jun 7, 2021
1 parent 6859c08 commit 19d2c62
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/api/php/endpoints/projects.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ class Projects extends Endpoint implements \LORIS\Middleware\ETagCalculator

// Delegate to project specific endpoint.
try {
$project_name = $pathparts[1] ?? '';
$project_name = isset($pathparts[1]) ?
urldecode($pathparts[1]) :
'';
$project = \NDB_Factory::singleton()
->project($project_name);
} catch (\NotFound $e) {
Expand Down

0 comments on commit 19d2c62

Please sign in to comment.