diff --git a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/internal/ElEscapeDetector.java b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/internal/ElEscapeDetector.java index 0f512a7a39..1cd88abccd 100644 --- a/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/internal/ElEscapeDetector.java +++ b/pmd-visualforce/src/main/java/net/sourceforge/pmd/lang/vf/rule/security/internal/ElEscapeDetector.java @@ -41,7 +41,7 @@ public final class ElEscapeDetector { // These Text functions are safe, either because of what they accept or what they return. "begins", "br", "casesafeid", "contains", "find", "getsessionid", "ispickval", "len", // These Advanced functions are safe because of what they accept or what they return. - "currencyrate", "getrecordids", "ischanged", "junctionidlist", "regex", "urlfor" + "currencyrate", "getrecordids", "ischanged", "junctionidlist", "linkto", "regex", "urlfor" )); private static final Set FUNCTIONS_WITH_XSSABLE_ARG0 = new HashSet<>(Arrays.asList( // For these methods, the first argument is a string that must be escaped.