mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +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:
@@ -645,7 +645,7 @@ class Bridge_Api_Youtube extends Bridge_Api_Abstract implements Bridge_Api_Inter
|
||||
|
||||
$filesource = new Zend_Gdata_App_MediaFileSource($record->get_hd_file()->getRealPath());
|
||||
$filesource->setContentType($record->get_hd_file()->get_mime());
|
||||
$filesource->setSlug($record->get_title());
|
||||
$filesource->setSlug($record->get_title(['encode'=> record_adapter::ENCODE_FOR_URI]));
|
||||
|
||||
$video_entry->setMediaSource($filesource);
|
||||
$video_entry->setVideoTitle($options['title']);
|
||||
|
Reference in New Issue
Block a user