Iterative DotExpression evaluation instead of checking the first one
This commit is contained in:
@ -392,7 +392,9 @@ public class VfUnescapeElRule extends AbstractVfRule {
|
||||
}
|
||||
|
||||
if (child instanceof ASTDotExpression) {
|
||||
return containsSafeFields((ASTDotExpression) child);
|
||||
if (containsSafeFields((ASTDotExpression) child)) {
|
||||
return true;
|
||||
};
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -1,6 +1,24 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<test-data>
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Safe escaped value in repeat
|
||||
]]></description>
|
||||
<expected-problems>0</expected-problems>
|
||||
<code><![CDATA[
|
||||
<apex:page>
|
||||
<apex:outputPanel>
|
||||
<input type="radio"
|
||||
onclick="invokeDoSelectFormat('{!editFormat.recordType.Id}');">
|
||||
</input>
|
||||
</apex:outputPanel>
|
||||
</apex:page>
|
||||
]]></code>
|
||||
<source-type>vf</source-type>
|
||||
</test-code>
|
||||
|
||||
|
||||
<test-code>
|
||||
<description><![CDATA[
|
||||
Safe escaped value in repeat
|
||||
|
Reference in New Issue
Block a user