[vf] URLENCODE is ignored as valid escape method #1100

This commit is contained in:
Robert Sösemann
2018-05-16 15:46:40 +02:00
parent c90061d067
commit 9a2ac14b05
2 changed files with 11 additions and 1 deletions

View File

@@ -226,7 +226,7 @@ public class VfUnescapeElRule extends AbstractVfRule {
}
if (doesElContainAnyUnescapedIdentifiers(el,
EnumSet.of(Escaping.JSINHTMLENCODE, Escaping.JSENCODE))) {
EnumSet.of(Escaping.ANY))) {
isEL = true;
toReport.add(el);
}

View File

@@ -654,5 +654,15 @@ NOW() is a safe call
<source-type>vf</source-type>
</test-code>
<test-code>
<description><![CDATA[
URLENCODE is ignored as valid escape method #1100
]]></description>
<expected-problems>0</expected-problems>
<code><![CDATA[
<a onclick="openTab('/apex/Download?redirectUrl={!URLENCODE(downloadURL)}', 'test');">
]]></code>
<source-type>vf</source-type>
</test-code>
</test-data>