mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
PHRAS-3520_stamper-enhance (#4385)
* WIP DO NOT MERGE add: stamp subdefs of class "preview" apply watermark on stamped subdef (cache to be fixed) fix: admin/collection settings (new ux, clean xml) * WIP DO NOT MERGE add: stamp subdefs of class "preview" apply watermark on stamped subdef (cache to be fixed) fix: admin/collection settings (new ux, clean xml) * conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp. * fix test * WIP DO NOT MERGE add: stamp subdefs of class "preview" apply watermark on stamped subdef (cache to be fixed) fix: admin/collection settings (new ux, clean xml) * conf.export_stamp_choice now supports 'manage_collection' and 'manage_databox' (and bc true) to restrict right to remove stamp. * fix test * fix compatibility with download-async ; add registry/actions/stamp-subdefs=false to conf
This commit is contained in:
@@ -803,7 +803,9 @@ class CollectionController extends Controller
|
||||
try {
|
||||
if ('' !== trim($prefs)) {
|
||||
$domdoc = new \DOMDocument();
|
||||
if (true === @$domdoc->loadXML($prefs)) {
|
||||
if (true === @$domdoc->loadXML($prefs, LIBXML_NONET | LIBXML_NOBLANKS)) {
|
||||
$domdoc->formatOutput = true;
|
||||
$domdoc->saveXML(null, LIBXML_NOEMPTYTAG);
|
||||
$collection->set_prefs($domdoc);
|
||||
$success = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user