mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-09 19:13:26 +00:00
PHRAS-3800_xss (#4219)
* add encode option to record::get_title ; render preview.record_title in twig * html-escape facet values
This commit is contained in:
@@ -519,7 +519,7 @@ class module_report_nav extends module_report
|
||||
, 'record_id' => $record->getRecordId()
|
||||
, 'date' => $this->app['date-formatter']->getPrettyString($document->get_creation_date())
|
||||
, 'type' => $document->get_mime()
|
||||
, 'titre' => $record->get_title()
|
||||
, 'titre' => $record->get_title(['encode'=> record_adapter::ENCODE_FOR_HTML])
|
||||
, 'taille' => $document->get_size()
|
||||
];
|
||||
|
||||
|
Reference in New Issue
Block a user