From 0fb3923869be84d1d3acce6f093da049eaca240c Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 30 Jul 2025 09:41:42 +0200 Subject: [PATCH] fix label for docs with link to itself --- views/bootstrap/class.ObjectCheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ObjectCheck.php b/views/bootstrap/class.ObjectCheck.php index 4491c45bd..52612507f 100644 --- a/views/bootstrap/class.ObjectCheck.php +++ b/views/bootstrap/class.ObjectCheck.php @@ -381,7 +381,7 @@ class SeedDMS_View_ObjectCheck extends SeedDMS_Theme_Style { $class = ' class="error"'; } } - print "".$doc->getId()."".$version->getVersion()."".$version->getOriginalFileName()."".$version->getMimeType()."".$version->getFileType().""; + print "".$doc->getId()."".$version->getVersion()."".htmlspecialchars($version->getOriginalFileName())."".$version->getMimeType()."".$version->getFileType().""; echo ""; echo $msg; echo ""; @@ -784,7 +784,7 @@ $(document).ready( function() { $menuitems = []; $menuitems[] = array('label'=>getMLText('duplicate_content'), 'badge'=>count($duplicateversions), 'attributes'=>array(array('data-href', "#duplicate_content"), array('data-action', "listDuplicateContent"))); $menuitems[] = array('label'=>getMLText('duplicate_sequences'), 'badge'=>count($duplicatesequences), 'attributes'=>array(array('data-href', "#duplicate_sequences"), array('data-action', "listDuplicateSequence"))); - $menuitems[] = array('label'=>getMLText('link_to_itself'), 'badge'=>count($docslinktoitself), 'attributes'=>array(array('data-href', "#link_to_itself"), array('data-action', "listLinkToItself"))); + $menuitems[] = array('label'=>getMLText('docs_with_link_to_itself'), 'badge'=>count($docslinktoitself), 'attributes'=>array(array('data-href', "#link_to_itself"), array('data-action', "listLinkToItself"))); $menuitems[] = array('label'=>getMLText('docs_in_revision_no_access'), 'badge'=>count($docsinrevisionnoaccess), 'attributes'=>array(array('data-href', "#inrevision_no_access"), array('data-action', "listDocsInRevisionNoAccess"))); $menuitems[] = array('label'=>getMLText('docs_in_revision_disabled'), 'badge'=>count($docsinrevisiondisabled), 'attributes'=>array(array('data-href', "#inrevision_disabled"), array('data-action', "listDocsInRevisionDisabled"))); $menuitems[] = array('label'=>getMLText('docs_in_reception_no_access'), 'badge'=>count($docsinreceptionnoaccess), 'attributes'=>array(array('data-href', "#inreception_no_access"), array('data-action', "listDocsInReceptionNoAccess")));