Whitelisting of http

This commit is contained in:
Sergey
2017-02-28 13:17:54 -08:00
parent a4f77dfe25
commit 6bafe94b94

View File

@ -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("/")) {
if (attrText.getImage().startsWith("/") || attrText.getImage().startsWith("http")) {
startingWithSlashText = true;
}
}