Skip to content

Commit 0bd67b9

Browse files
committed
fix link to BrainBrowser in the MRI violations module
1 parent 6a37893 commit 0bd67b9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/brainbrowser/php/imageinfo.class.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ class ImageInfo extends \NDB_Page
185185
'' as Visit_label,
186186
MincFile as File,
187187
LogID as FileID
188-
FROM mri_violation_log
188+
FROM mri_violations_log
189189
WHERE LogID IN (" . join(",", $params) .")";
190190
break;
191191
case 'CandidateError':

php/libraries/FilesDownloadHandler.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public function handle(ServerRequestInterface $request) : ResponseInterface
6767
);
6868
}
6969
//Use basename to remove path traversal characters.
70-
$filename = basename(strval($request->getAttribute('filename')));
70+
$filename = \Utility::resolvePath($request->getAttribute('filename'));
7171

7272
if (empty($filename)) {
7373
return new \LORIS\Http\Response\JSON\BadRequest(

0 commit comments

Comments
 (0)