From 8db5464583d32ab2f79f3c0a31f1d988c47d7259 Mon Sep 17 00:00:00 2001 From: Sergey Date: Tue, 28 Feb 2017 13:18:37 -0800 Subject: [PATCH] any case http --- .../sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java index 605c6bcbdd..05865ce319 100644 --- a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java +++ b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/VfUnescapeElRule.java @@ -77,7 +77,7 @@ public class VfUnescapeElRule extends AbstractVfRule { final ASTText attrText = attr.getFirstDescendantOfType(ASTText.class); if (attrText != null) { if (0 == attrText.jjtGetChildIndex()) { - if (attrText.getImage().startsWith("/") || attrText.getImage().startsWith("http")) { + if (attrText.getImage().startsWith("/") || attrText.getImage().toLowerCase().startsWith("http")) { startingWithSlashText = true; } }