[vf] URLENCODE is ignored as valid escape method #1100
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user