I'm passing the Data Leak Prevention module and have faced some misunderstanding here in this unit
Controller:
public with sharing class CRUD_FLS_Challenge {
public List<Treasures__c> treasures {get;set;}
public String chestContents {get;set;}
public CRUD_FLS_Challenge()
{
treasures = new List<Treasures__c>([select Name, Type__c, Found__c, Description__c, Castle__r.Name FROM Treasures__c where Found__c =: True limit 5]);
}
VF markup:
<apex:page controller="CRUD_FLS_Challenge" tabStyle="CRUD_FLS_Challenge__tab">
<apex:pageBlockTable value="{!treasures}" var="p">
<apex:column headervalue="Name">
<apex:OutputText value="{!p.Name}" /> <!-- p.Name is vulnerable NO -->
</apex:column>
<apex:column headervalue="Description">
<apex:OutputText value="{!p.Description__c}" /> <!-- p.Description__c is vulnerable NO -->
</apex:column>
</apex:pageBlockTable>
why {!treasures} aren't vulnerable?