Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
mrzengel committed Oct 20, 2024
1 parent 95c7fe2 commit 8f97e87
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/API/API_functions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ export async function downloadFile(recordID: string, filePath: string) {
a.click();
a.remove(); // Remove the link after download
window.URL.revokeObjectURL(url); // Clean up URL object */
} catch (error) {
console.error('Error downloading file:', error);
} catch {
console.error('Error downloading file:');
}
}
1 change: 1 addition & 0 deletions zenodo_jupyterlab/server/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ async def get(self):
#root_dir = os.getenv("HOME")
relative_path = self.get_query_argument('path', '')
full_path = os.path.join(os.getcwd(), relative_path)
print(relative_path, full_path)

if '..' in full_path or not os.path.isdir(full_path):
self.set_status(404)
Expand Down

0 comments on commit 8f97e87

Please sign in to comment.