Skip to content

Commit

Permalink
fix link to BrainBrowser in the MRI violations module
Browse files Browse the repository at this point in the history
  • Loading branch information
cmadjar committed Feb 21, 2023
1 parent 6a37893 commit 0bd67b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion modules/brainbrowser/php/imageinfo.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ class ImageInfo extends \NDB_Page
'' as Visit_label,
MincFile as File,
LogID as FileID
FROM mri_violation_log
FROM mri_violations_log
WHERE LogID IN (" . join(",", $params) .")";
break;
case 'CandidateError':
Expand Down
2 changes: 1 addition & 1 deletion php/libraries/FilesDownloadHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function handle(ServerRequestInterface $request) : ResponseInterface
);
}
//Use basename to remove path traversal characters.
$filename = basename(strval($request->getAttribute('filename')));
$filename = \Utility::resolvePath($request->getAttribute('filename'));

if (empty($filename)) {
return new \LORIS\Http\Response\JSON\BadRequest(
Expand Down

0 comments on commit 0bd67b9

Please # to comment.