mirror of
https://github.com/modrinth/code.git
synced 2026-09-05 06:19:11 +00:00
fix: add poster attribute to configuredXss
This commit is contained in:
@@ -82,7 +82,7 @@ export const configuredXss = new FilterXSS({
|
|||||||
safeAttrValue(tag, name, value, cssFilter) {
|
safeAttrValue(tag, name, value, cssFilter) {
|
||||||
if (
|
if (
|
||||||
(tag === 'img' || tag === 'video' || tag === 'audio' || tag === 'source') &&
|
(tag === 'img' || tag === 'video' || tag === 'audio' || tag === 'source') &&
|
||||||
(name === 'src' || name === 'srcset') &&
|
(name === 'src' || name === 'srcset' || name === 'poster') &&
|
||||||
!value.startsWith('data:')
|
!value.startsWith('data:')
|
||||||
) {
|
) {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in New Issue
Block a user