You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
String IdAccount = String.escapeSingleQuotes(Apexpages.currentPage().getParameters().get('Id')); <-- I have an error on this line. Running ApexPMD in VSCode (0.5.8, so PMD 6.41)
Affects PMD Version:
6.24+
7.0.0
Rule: ApexXSSFromURLParam
Rule name
https://pmd.github.io/pmd-6.24.0/pmd_rules_apex_security.html#apexxssfromurlparam
Description: False positive, even String.escapeSingleQUotes is being used on url parameter input
Apex method link to prevent XSS : https://developer.salesforce.com/docs/atlas.en-us.apexcode.meta/apexcode/apex_methods_system_string.htm#apex_System_String_escapeSingleQuotes
Code Sample demonstrating the issue:
Expected outcome:
Running PMD through: [Ant]
The text was updated successfully, but these errors were encountered: