From 4a678ad1ec0512f792e158fa92c4f06bbe44f364 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 30 Apr 2021 09:31:50 +0200 Subject: [PATCH] escape workflow name, fix counting recipients --- views/bootstrap/class.ViewDocument.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index ad9027a3c..e6fbef655 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -832,7 +832,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { echo ""; foreach($wkflogt as $wkflog) { echo ""; - echo "".$wkflog->getWorkflow()->getName().""; + echo "".htmlspecialchars($wkflog->getWorkflow()->getName()).""; echo "".$wkflog->getDate().""; echo "".htmlspecialchars($wkflog->getTransition()->getAction()->getName()).""; $loguser = $wkflog->getUser(); @@ -1325,7 +1325,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Theme_Style { print "\n"; print "\n"; - print "".(($count($receiptStatus) > 5) ? '' : getMLText('name'))."\n"; + print "".((count($receiptStatus) > 5) ? '' : getMLText('name'))."\n"; print "".getMLText("last_update")."\n"; print "".getMLText("comment").""; print "".getMLText("status")."\n";