Validate the key provided for the download #8
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Currrently, the key is passed on to a youtube-dl command-line without validation, this should be done! Also, maybe consider switching to the youtube_dl crate, after checking that it does the validation correctly.
It wouldn't hurt to have a type for the key/ID and implement
FromForm
for it.We actually already use a type for the key/ID, namely
PathBuf
for which Rocket already implements theFromFrom
trait which does not except any compromisable paths.