Sanitize
This commit is contained in:
parent
64d30b1399
commit
12c254ae6d
6
dist/immich.js
vendored
6
dist/immich.js
vendored
File diff suppressed because one or more lines are too long
@ -51,9 +51,9 @@ class Immich {
|
||||
switch (asset.type) {
|
||||
case AssetType.image:
|
||||
size = size === ImageSize.thumbnail ? ImageSize.thumbnail : ImageSize.original
|
||||
return this.request('/assets/' + asset.id + '/' + size)
|
||||
return this.request('/assets/' + encodeURIComponent(asset.id) + '/' + size)
|
||||
case AssetType.video:
|
||||
return this.request('/assets/' + asset.id + '/video/playback')
|
||||
return this.request('/assets/' + encodeURIComponent(asset.id) + '/video/playback')
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user