Skip to content

Commit 04dec59

Browse files
committed
Detect another occurrence of PMD VaadinNativeHTMLIsUnsafe
1 parent 52d7ca8 commit 04dec59

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.config/pmd/java/ruleset.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,8 @@ If you are 100% sure that you escaped the value properly and you have no better
421421
<value>
422422
<![CDATA[
423423
//ConstructorCall[pmd-java:typeIs('com.vaadin.flow.component.Html')] |
424-
//MethodCall[@MethodName='setAttribute' and //ImportDeclaration[starts-with(@PackageName,'com.vaadin')]]/ArgumentList/StringLiteral[1][contains(lower-case(@Image),'html')]
424+
//MethodCall[@MethodName='setAttribute' and //ImportDeclaration[starts-with(@PackageName,'com.vaadin')]]/ArgumentList/StringLiteral[1][contains(lower-case(@Image),'html')] |
425+
//MethodCall[pmd-java:matchesSig('com.vaadin.flow.dom.Element#setProperty(java.lang.String,java.lang.String)')]/ArgumentList/StringLiteral[1][contains(lower-case(@Image),'html')]
425426
]]>
426427
</value>
427428
</property>

0 commit comments

Comments
 (0)