Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Tidy up some imports | Sven-Hendrik Haase | 2022-09-20 | 1 | -3/+4 |
| | |||||
* | Return 403 instead of 500 for upload errs | Jonas Diemer | 2022-09-19 | 1 | -3/+1 |
| | |||||
* | cargo fmt | Jonas Diemer | 2022-09-18 | 1 | -6/+8 |
| | |||||
* | sanitize allowed upload paths for cases like ./dir | Jonas Diemer | 2022-09-18 | 1 | -1/+1 |
| | |||||
* | clarity of comment | Jonas Diemer | 2022-09-18 | 1 | -1/+1 |
| | | | Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> | ||||
* | Update src/file_upload.rs | Jonas Diemer | 2022-09-18 | 1 | -1/+1 |
| | | | Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> | ||||
* | Renamed option for more clarity | Jonas Diemer | 2022-09-18 | 1 | -3/+2 |
| | |||||
* | cleaned up code using any() | Jonas Diemer | 2022-09-18 | 1 | -11/+5 |
| | |||||
* | Switched to use of PathBuf, fixed for subdirs | Jonas Diemer | 2022-09-18 | 1 | -3/+8 |
| | |||||
* | Added option restrict-upload-dir | Jonas Diemer | 2022-09-18 | 1 | -0/+13 |
| | |||||
* | Create directory (#781) | Sheepy | 2022-06-26 | 1 | -16/+122 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ability to make directory Frontend for making directories Fix potential security vulnerability (CWE-23) Add tests Update README.md Disallow using parent directories altogether Fix formatting Fix clippy warnings Address review comments Update README.md Change `making` to `creation` Co-authored-by: Sven-Hendrik Haase <svenstaro@gmail.com> Have make directory flag require file upload flag Address review comments * Disallow uploading files and making directories through symlinks when disabled * Add test * Clippy formatting changes * Add test doc comment | ||||
* | Bump actix-web to v4.0-beta.15 | jikstra | 2021-12-28 | 1 | -9/+6 |
| | | | | Co-authored-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | ||||
* | Adress review comments | Ali MJ Al-Nasrawy | 2021-09-04 | 1 | -2/+39 |
| | |||||
* | file_upload.rs: sanitize path input | Ali MJ Al-Nasrawy | 2021-09-01 | 1 | -10/+42 |
| | | | | Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | ||||
* | Fix clippy::too_many_arguments and rework error .. | Ali MJ Al-Nasrawy | 2021-08-30 | 1 | -142/+25 |
| | | | | | | | | | | | | | | | | | | | | | ... page rendering Too many arguments are moved around and many of them are already stored in MiniserveConfig. Many of these are used to render error pages. To fix this issue, it was necessary to rework error page rendering: 1. Implement `ResponseError` for `ContextualError` so that it can be returned from service handlers as is and will then be automatically logged to the console and converted into an error response. 2. At service handler level, all error responses are now rendered as plain text. 3. 'error_page_middleware' is now responsible for the rendering of the final error page from plain text reponses. Signed-off-by: Ali MJ Al-Nasrawy <alimjalnasrawy@gmail.com> | ||||
* | file_upload.rs: use async/await | Ali MJ Al-Nasrawy | 2021-08-28 | 1 | -133/+100 |
| | | | | | ... and rewrite {save_file, handle_multipart} ... and fix clippy warning about create_error_response() being always Ok() | ||||
* | migrate to actix-web v4.0-beta | Ali MJ Al-Nasrawy | 2021-08-28 | 1 | -1/+1 |
| | |||||
* | Fix lints | Sven-Hendrik Haase | 2021-06-28 | 1 | -2/+2 |
| | |||||
* | Refuse to start without explicit path if not attached to interactive terminal | Sven-Hendrik Haase | 2021-03-28 | 1 | -3/+1 |
| | |||||
* | Fix clippy warning | Tamas Levai | 2021-03-01 | 1 | -0/+1 |
| | |||||
* | Add program version footer | Tamas Levai | 2021-02-28 | 1 | -0/+7 |
| | |||||
* | Fix lints | Sven-Hendrik Haase | 2021-02-19 | 1 | -5/+5 |
| | |||||
* | restore default theme cli option and add default theme dark option | Lukas Stabe | 2020-10-01 | 1 | -0/+17 |
| | |||||
* | move css out of html into its own route | Lukas Stabe | 2020-09-26 | 1 | -0/+7 |
| | |||||
* | [wip] client-side color-scheme handling | Lukas Stabe | 2020-09-25 | 1 | -15/+0 |
| | |||||
* | Add embedded favicon (fixes #364) | Sven-Hendrik Haase | 2020-09-24 | 1 | -0/+7 |
| | |||||
* | Update to actix 2 and futures 0.3 | equal-l2 | 2020-07-21 | 1 | -74/+65 |
| | |||||
* | Make clippy and cargo fmt happy | Sven-Hendrik Haase | 2020-06-26 | 1 | -1/+1 |
| | |||||
* | Format everything | Sven-Hendrik Haase | 2020-03-11 | 1 | -6/+6 |
| | |||||
* | Merge pull request #239 from DamianX/FixClippyWarnings | Sven-Hendrik Haase | 2020-02-27 | 1 | -1/+1 |
|\ | | | | | Fixed clippy warnings | ||||
| * | Fixed clippy warnings | Damian | 2019-12-20 | 1 | -1/+1 |
| | | |||||
* | | Fix Clippy warning | boastful-squirrel | 2019-08-16 | 1 | -0/+1 |
| | | |||||
* | | Do not 'back to listing' link when random route is set | boastful-squirrel | 2019-08-16 | 1 | -1/+7 |
|/ | |||||
* | Add dyns | Sven-Hendrik Haase | 2019-06-09 | 1 | -2/+2 |
| | |||||
* | Return QueryParameters struct instead of tuple | boastful-squirrel | 2019-05-03 | 1 | -11/+11 |
| | |||||
* | Read query params to handle error back link | boastful-squirrel | 2019-05-02 | 1 | -41/+18 |
| | |||||
* | Cargo fmt | boastful-squirrel | 2019-05-02 | 1 | -2/+3 |
| | |||||
* | Use HTTP StatusCode for error title | boastful-squirrel | 2019-05-01 | 1 | -1/+8 |
| | |||||
* | Merge branch 'master' into themed-errors | boastful-squirrel | 2019-04-27 | 1 | -24/+23 |
|\ | |||||
| * | Combine ContextualError and ContextualErrorKind into one | khai96_ | 2019-04-27 | 1 | -16/+16 |
| | | |||||
* | | Improved some errors | boastful-squirrel | 2019-04-27 | 1 | -1/+1 |
| | | |||||
* | | Themed errors | boastful-squirrel | 2019-04-27 | 1 | -22/+86 |
| | | |||||
* | | Merged query parameter structs + improved file upload errors | boastful-squirrel | 2019-04-26 | 1 | -21/+33 |
|/ | |||||
* | Merge branch 'master' into no_panics | boastful-squirrel | 2019-04-25 | 1 | -4/+5 |
|\ | |||||
| * | Add a couple more integration tests | Sven-Hendrik Haase | 2019-04-24 | 1 | -4/+5 |
| | | |||||
* | | Properly log error + added render_error method | boastful-squirrel | 2019-04-21 | 1 | -6/+6 |
| | | |||||
* | | Print upload/archive errors also in terminal | boastful-squirrel | 2019-04-21 | 1 | -0/+1 |
| | | |||||
* | | Rework error system + avoid panics in main() | boastful-squirrel | 2019-04-21 | 1 | -18/+39 |
|/ | |||||
* | Replace format with to_string() | Vojtěch Pejša | 2019-04-09 | 1 | -4/+1 |
| | |||||
* | Change HTTP response code and cleanup previus commit. | Vojtěch Pejša | 2019-04-09 | 1 | -5/+6 |
| |