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
10 months agoVanda
10 months agoShawana
10 months agoRodolfo
11 months agoDemetra
11 months agoLashaun
11 months agoMarg
11 months agoRoyal
11 months agoCorinne
11 months agoMarylyn
11 months agoElroy
11 months agoVernice
11 months agoEssie
11 months agoAshley
11 months agoFrance
11 months ago