fix: harden playback and security edge cases

This commit is contained in:
ShukeBta
2026-06-25 02:33:30 +08:00
parent 02fe4fd374
commit 9021007027
5 changed files with 113 additions and 8 deletions
+1 -1
View File
@@ -106,7 +106,7 @@ function artworkIdentity(url) {
return `${url.origin}${url.pathname}?url=${url.searchParams.get('url') || ''}`
}
if (url.pathname.startsWith('/api/cloud/play/')) {
return `${url.origin}${url.pathname}`
return `${url.origin}${url.pathname}?ref=${url.searchParams.get('ref') || ''}`
}
return ''
}