Iterative DotExpression evaluation instead of checking the first one

This commit is contained in:
Sergey
2017-03-02 17:47:56 -08:00
parent caf27adbc2
commit d12c1f7fe4
2 changed files with 21 additions and 1 deletions

View File

@ -392,7 +392,9 @@ public class VfUnescapeElRule extends AbstractVfRule {
}
if (child instanceof ASTDotExpression) {
return containsSafeFields((ASTDotExpression) child);
if (containsSafeFields((ASTDotExpression) child)) {
return true;
};
}
}

View File

@ -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