Stop trimming filename references before encoding (#1462)

Closes  #1430
This commit is contained in:
RumovZ 2021-10-28 11:22:51 +02:00 committed by GitHub
parent 7e17f9e2ad
commit 3ab9712c18
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -464,8 +464,7 @@ where
.or_else(|| caps.get(2))
.or_else(|| caps.get(3))
.unwrap()
.as_str()
.trim();
.as_str();
let full = caps.get(0).unwrap().as_str();
if REMOTE_FILENAME.is_match(fname) {
full.into()