media: additional sanitisation on the Content-Disposition
filename
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
2231ccf118
commit
154b2ab490
5 changed files with 148 additions and 38 deletions
11
Cargo.lock
generated
11
Cargo.lock
generated
|
@ -615,6 +615,7 @@ dependencies = [
|
|||
"ruma-identifiers-validation",
|
||||
"rusqlite",
|
||||
"rust-rocksdb",
|
||||
"sanitize-filename",
|
||||
"sd-notify",
|
||||
"sentry",
|
||||
"sentry-tower",
|
||||
|
@ -3054,6 +3055,16 @@ dependencies = [
|
|||
"winapi-util",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "sanitize-filename"
|
||||
version = "0.5.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "2ed72fbaf78e6f2d41744923916966c4fbe3d7c74e3037a8ee482f1115572603"
|
||||
dependencies = [
|
||||
"lazy_static",
|
||||
"regex",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "schannel"
|
||||
version = "0.1.23"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue