mirror of
https://github.com/outline/outline.git
synced 2026-11-26 23:50:14 +03:00
fix: AttachmentHelper key includes double forward slash
This commit is contained in:
1 parent
55005d4447
commit
24ce661b7d
1 file changed
+1
-1
@@ -31,7 +31,7 @@ export default class AttachmentHelper {
|
||||
}) {
|
||||
const bucket = acl === "public-read" ? Buckets.public : Buckets.uploads;
|
||||
const keyPrefix = `${bucket}/${userId}/${id}`;
|
||||
return `${keyPrefix}/${ValidateKey.sanitize(name)}`;
|
||||
return ValidateKey.sanitize(`${keyPrefix}/${name}`);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user