How should the developer prevent a cross site scripting vulnerability?
A developer has a Apex controller for a Visualforce page that takes an ID as a URL parameter.
How should the developer prevent a cross site scripting vulnerability?
A . ApexPages.currentPage() .getParameters() .get(‘url_param’)
B . ApexPages.currentPage() .getParameters() .get(‘url_param’) .escapeHtml4()
C . String.ValueOf(ApexPages.currentPage() .getParameters() .get(‘url_param’))
D . String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get(‘url_param’))
Answer: D
Latest PDI Dumps Valid Version with 191 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund
Subscribe
Login
0 Comments
Inline Feedbacks
View all comments