Prepare for releasing 8.1.0
This commit is contained in:
parent
3fa55bdc14
commit
28332fd4b9
21 changed files with 1387 additions and 978 deletions
|
|
@ -998,11 +998,8 @@ impl Session {
|
|||
return Ok(None);
|
||||
}
|
||||
|
||||
fn check_valid(pb: &PathBuf) -> anyhow::Result<()> {
|
||||
if pb.components().into_iter().any(|x| match x {
|
||||
Component::Normal(_) => false,
|
||||
_ => true,
|
||||
}) {
|
||||
fn check_valid(pb: &Path) -> anyhow::Result<()> {
|
||||
if pb.components().any(|x| !matches!(x, Component::Normal(_))) {
|
||||
bail!("path traversal in torrent name detected")
|
||||
}
|
||||
Ok(())
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue