mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 12:12:00 -06:00
Do not sanitize user path input
This commit is contained in:
parent
d503d459cd
commit
2e6246c439
1 changed files with 3 additions and 2 deletions
|
|
@ -409,8 +409,9 @@ impl Format {
|
|||
|
||||
/// Formats the given string if it has specific pattern in it. It also sanitizes the filename.
|
||||
pub fn format_path(&self, path: PathBuf) -> PathBuf {
|
||||
let mut path = sanitize(path.to_string_lossy(), false);
|
||||
path = path
|
||||
let path = path
|
||||
.to_string_lossy()
|
||||
.to_string()
|
||||
.replace("{title}", &sanitize(&self.title, true))
|
||||
.replace(
|
||||
"{audio}",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue