Stefan Forstenlechner
09ff5ff5e7
Add test for securityChecks
...
Only covers simple cases. Administrator is responsible to secure that
the user that runs the webserver is not allowed to access files that
are not within the shared folder.
Add jest to picture-gallery-server
2022-06-18 16:03:14 +02:00
Stefan Forstenlechner
ff0d3f676e
Show original image in big picture mode
2022-05-26 23:06:24 +02:00
Stefan Forstenlechner
1d038f84a2
Add some sensible sorting
2022-05-26 23:05:48 +02:00
Stefan Forstenlechner
30a21e820d
Extract a method and add some typings
2022-04-29 21:29:34 +02:00
Stefan Forstenlechner
53e0e9bd1f
Add security check to avoid access violations
...
In case of malicious users double check paths, so that they are not able
to traverse outside of the image directory.
2022-04-29 21:14:38 +02:00
Stefan Forstenlechner
a7c4a17ecc
Better error handling
...
Remove `image-size` dependency as sharp covers the needed functionality.
2022-04-25 23:31:17 +02:00
Stefan Forstenlechner
416298e673
Simple error handling in ImageGalleryLayout
...
Cannot use react-query at the moment as react 18 is not supported yet.
2022-04-17 16:22:03 +02:00
Stefan Forstenlechner
2923e1b373
Catch incorrect path exceptions and add logging
2022-04-17 16:21:44 +02:00