Salesforce DEX-450 Exam - Topic 6 Question 34 Discussion
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?
B) ApexPages.currentPage() .getParameters() .get('url_param') .escapeHtml4()
A) ApexPages.currentPage() .getParameters() .get('url_param')
C) String.ValueOf(ApexPages.currentPage() .getParameters() .get('url_param'))
D) String.escapeSingleQuotes(ApexPages.currentPage() .getParameters(). get('url_param'))
Paris
9 months agoVanda
9 months agoShawana
9 months agoRodolfo
9 months agoDemetra
9 months agoLashaun
9 months agoMarg
9 months agoRoyal
9 months agoCorinne
10 months agoMarylyn
10 months agoElroy
10 months agoVernice
10 months agoEssie
10 months agoAshley
10 months agoFrance
10 months ago