mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-12 12:41:30 +00:00
pass group/user name to htmlspecialchars() before output
This commit is contained in:
parent
cf7a6becf2
commit
3cd1219b81
|
@ -284,7 +284,7 @@ $(document).ready(function() {
|
||||||
foreach ($res as $r) {
|
foreach ($res as $r) {
|
||||||
if($r['reviewerUserID'] > 0) {
|
if($r['reviewerUserID'] > 0) {
|
||||||
$u = $dms->getUser($r['reviewerUserID']);
|
$u = $dms->getUser($r['reviewerUserID']);
|
||||||
$tmp[] = $u->getFullName().' ('.$u->getLogin().')';
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($tmp) {
|
if($tmp) {
|
||||||
|
@ -335,7 +335,7 @@ $(document).ready(function() {
|
||||||
foreach ($res as $r) {
|
foreach ($res as $r) {
|
||||||
if($r['reviewerGroupID'] > 0) {
|
if($r['reviewerGroupID'] > 0) {
|
||||||
$u = $dms->getGroup($r['reviewerGroupID']);
|
$u = $dms->getGroup($r['reviewerGroupID']);
|
||||||
$tmp[] = $u->getName();
|
$tmp[] = htmlspecialchars($u->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($tmp) {
|
if($tmp) {
|
||||||
|
@ -394,7 +394,7 @@ $(document).ready(function() {
|
||||||
foreach ($res as $r) {
|
foreach ($res as $r) {
|
||||||
if($r['approverUserID'] > 0) {
|
if($r['approverUserID'] > 0) {
|
||||||
$u = $dms->getUser($r['approverUserID']);
|
$u = $dms->getUser($r['approverUserID']);
|
||||||
$tmp[] = $u->getFullName().' ('.$u->getLogin().')';
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($tmp) {
|
if($tmp) {
|
||||||
|
@ -446,7 +446,7 @@ $(document).ready(function() {
|
||||||
foreach ($res as $r) {
|
foreach ($res as $r) {
|
||||||
if($r['approverGroupID'] > 0) {
|
if($r['approverGroupID'] > 0) {
|
||||||
$u = $dms->getGroup($r['approverGroupID']);
|
$u = $dms->getGroup($r['approverGroupID']);
|
||||||
$tmp[] = $u->getName();
|
$tmp[] = htmlspecialchars($u->getName());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if($tmp) {
|
if($tmp) {
|
||||||
|
|
|
@ -203,6 +203,21 @@ function checkForm()
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
|
/* List all mandatory reviewers */
|
||||||
|
if($res) {
|
||||||
|
$tmp = array();
|
||||||
|
foreach ($res as $r) {
|
||||||
|
if($r['reviewerUserID'] > 0) {
|
||||||
|
$u = $dms->getUser($r['reviewerUserID']);
|
||||||
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($tmp) {
|
||||||
|
echo '<div class="mandatories"><span>'.getMLText('mandatory_reviewers').':</span> ';
|
||||||
|
echo implode(', ', $tmp);
|
||||||
|
echo "</div>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
/* Check for mandatory reviewer without access */
|
/* Check for mandatory reviewer without access */
|
||||||
foreach($res as $r) {
|
foreach($res as $r) {
|
||||||
if($r['reviewerUserID']) {
|
if($r['reviewerUserID']) {
|
||||||
|
@ -238,6 +253,22 @@ function checkForm()
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
|
/* List all mandatory groups of reviewers */
|
||||||
|
if($res) {
|
||||||
|
$tmp = array();
|
||||||
|
foreach ($res as $r) {
|
||||||
|
if($r['reviewerGroupID'] > 0) {
|
||||||
|
$u = $dms->getGroup($r['reviewerGroupID']);
|
||||||
|
$tmp[] = htmlspecialchars($u->getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($tmp) {
|
||||||
|
echo '<div class="mandatories"><span>'.getMLText('mandatory_reviewergroups').':</span> ';
|
||||||
|
echo implode(', ', $tmp);
|
||||||
|
echo "</div>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for mandatory reviewer group without access */
|
/* Check for mandatory reviewer group without access */
|
||||||
foreach($res as $r) {
|
foreach($res as $r) {
|
||||||
if ($r['reviewerGroupID']) {
|
if ($r['reviewerGroupID']) {
|
||||||
|
@ -280,6 +311,22 @@ function checkForm()
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
|
/* List all mandatory approvers */
|
||||||
|
if($res) {
|
||||||
|
$tmp = array();
|
||||||
|
foreach ($res as $r) {
|
||||||
|
if($r['approverUserID'] > 0) {
|
||||||
|
$u = $dms->getUser($r['approverUserID']);
|
||||||
|
$tmp[] = htmlspecialchars($u->getFullName().' ('.$u->getLogin().')');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($tmp) {
|
||||||
|
echo '<div class="mandatories"><span>'.getMLText('mandatory_approvers').':</span> ';
|
||||||
|
echo implode(', ', $tmp);
|
||||||
|
echo "</div>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for mandatory approvers without access */
|
/* Check for mandatory approvers without access */
|
||||||
foreach($res as $r) {
|
foreach($res as $r) {
|
||||||
if($r['approverUserID']) {
|
if($r['approverUserID']) {
|
||||||
|
@ -315,6 +362,22 @@ function checkForm()
|
||||||
?>
|
?>
|
||||||
</select>
|
</select>
|
||||||
<?php
|
<?php
|
||||||
|
/* List all mandatory groups of approvers */
|
||||||
|
if($res) {
|
||||||
|
$tmp = array();
|
||||||
|
foreach ($res as $r) {
|
||||||
|
if($r['approverGroupID'] > 0) {
|
||||||
|
$u = $dms->getGroup($r['approverGroupID']);
|
||||||
|
$tmp[] = htmlspecialchars($u->getName());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if($tmp) {
|
||||||
|
echo '<div class="mandatories"><span>'.getMLText('mandatory_approvergroups').':</span> ';
|
||||||
|
echo implode(', ', $tmp);
|
||||||
|
echo "</div>\n";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* Check for mandatory approver groups without access */
|
/* Check for mandatory approver groups without access */
|
||||||
foreach($res as $r) {
|
foreach($res as $r) {
|
||||||
if ($r['approverGroupID']) {
|
if ($r['approverGroupID']) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user