Skip to content

Commit e04f223

Browse files
author
yaroslav8765
committed
chore: fix possibility to insert in header invalid tags
1 parent 788291f commit e04f223

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adminforth/modules/codeInjector.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -553,7 +553,7 @@ class CodeInjector implements ICodeInjector {
553553
const attrs = Object.entries(attributes)
554554
.map(([key, value]) => `${key}="${value}"`)
555555
.join(' ');
556-
const isVoid = ['area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', 'link', 'meta', 'source', 'track', 'wbr'].includes(tagName);
556+
const isVoid = ['base', 'link', 'meta'].includes(tagName);
557557
return isVoid
558558
? `<${tagName} ${attrs}>`
559559
: `<${tagName} ${attrs}></${tagName}>`;

0 commit comments

Comments
 (0)