mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-11 20:21:16 +00:00
run workflow action name through htmlspecialchars()
This commit is contained in:
parent
2c0fb6f476
commit
1220de90bd
|
@ -733,7 +733,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
foreach($wkflogs as $wkflog) {
|
||||
echo "<tr>";
|
||||
echo "<td>".$wkflog->getDate()."</td>";
|
||||
echo "<td>".$wkflog->getTransition()->getAction()->getName()."</td>";
|
||||
echo "<td>".htmlspecialchars($wkflog->getTransition()->getAction()->getName())."</td>";
|
||||
$loguser = $wkflog->getUser();
|
||||
echo "<td>".htmlspecialchars($loguser->getFullName())."</td>";
|
||||
echo "<td>".htmlspecialchars($wkflog->getComment())."</td>";
|
||||
|
@ -1000,14 +1000,14 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
|
|||
foreach($transitions as $transition) {
|
||||
$nextstate = $transition->getNextState();
|
||||
$docstatus = $nextstate->getDocumentStatus();
|
||||
echo "<td><i class=\"icon-circle".($docstatus == S_RELEASED ? " released" : ($docstatus == S_REJECTED ? " rejected" : " in-workflow"))."\"></i> ".$nextstate->getName()."</td>";
|
||||
echo "<td><i class=\"icon-circle".($docstatus == S_RELEASED ? " released" : ($docstatus == S_REJECTED ? " rejected" : " in-workflow"))."\"></i> ".htmlspecialchars($nextstate->getName())."</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
echo "<td>".getMLText('action').":</td>";
|
||||
foreach($transitions as $transition) {
|
||||
$action = $transition->getAction();
|
||||
echo "<td>".getMLText('action_'.strtolower($action->getName()), array(), $action->getName())."</td>";
|
||||
echo "<td>".getMLText('action_'.strtolower($action->getName()), array(), htmlspecialchars($action->getName()))."</td>";
|
||||
}
|
||||
echo "</tr>";
|
||||
echo "<tr>";
|
||||
|
|
Loading…
Reference in New Issue
Block a user