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