Validate the key provided for the download #8

Closed
opened 2022-05-25 22:30:06 +02:00 by paul · 1 comment
Owner

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.

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](https:/lib.rs/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.
paul added the
bug
label 2022-05-25 22:30:06 +02:00
paul added this to the 0.2.0 milestone 2022-05-25 22:30:09 +02:00
paul self-assigned this 2022-05-25 22:30:27 +02:00
Author
Owner

We actually already use a type for the key/ID, namely PathBuf for which Rocket already implements the FromFrom trait which does not except any compromisable paths.

We actually already use a type for the key/ID, namely `PathBuf` for which Rocket already implements the `FromFrom` trait which does not except any compromisable paths.
paul closed this issue 2022-05-26 20:41:12 +02:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: paul/podbringer#8
No description provided.