Skip to content

Commit a9c96cf

Browse files
committed
rename vars
1 parent 0be25b7 commit a9c96cf

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

webroot/admin/ajax/get_group_members.php

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@
2626
} else {
2727
echo "<tr class='expanded $i'>";
2828
}
29-
$_uid = htmlspecialchars($uid);
29+
$uid_escaped = htmlspecialchars($uid);
3030
$fullname = htmlspecialchars($attributes["gecos"][0]);
3131
$mail = htmlspecialchars($attributes["mail"][0]);
32-
$gid = htmlspecialchars($group->gid);
32+
$gid_escaped = htmlspecialchars($group->gid);
3333
echo "<td>$fullname</td>";
34-
echo "<td>$_uid</td>";
34+
echo "<td>$uid_escaped</td>";
3535
echo "<td><a href='mailto:$mail'>$mail</a></td>";
3636
echo "<td>";
3737
$CSRFTokenHiddenFormInput = UnityHTTPD::getCSRFTokenHiddenFormInput();
@@ -40,13 +40,13 @@
4040
action=''
4141
method='POST'
4242
onsubmit='
43-
return confirm(\"Are you sure you want to remove $_uid from this group?\");
43+
return confirm(\"Are you sure you want to remove $uid_escaped from this group?\");
4444
'
4545
>
4646
$CSRFTokenHiddenFormInput
4747
<input type='hidden' name='form_type' value='remUserChild'>
48-
<input type='hidden' name='uid' value='$_uid'>
49-
<input type='hidden' name='pi' value='$gid'>
48+
<input type='hidden' name='uid' value='$uid_escaped'>
49+
<input type='hidden' name='pi' value='$gid_escaped'>
5050
<input type='submit' value='Remove'>
5151
</form>
5252
";
@@ -62,21 +62,21 @@
6262
echo "<tr class='expanded $i'>";
6363
}
6464
$name = htmlspecialchars($user->getFullName());
65-
$uid = htmlspecialchars($user->uid);
65+
$uid_escaped = htmlspecialchars($user->uid);
6666
$email = htmlspecialchars($user->getMail());
67-
$gid = htmlspecialchars($group->gid);
67+
$gid_escaped = htmlspecialchars($group->gid);
6868
echo "<td>$name</td>";
69-
echo "<td>$uid</td>";
69+
echo "<td>$uid_escaped</td>";
7070
echo "<td><a href='mailto:$email'>$email</a></td>";
7171
echo "<td>";
7272
$CSRFTokenHiddenFormInput = UnityHTTPD::getCSRFTokenHiddenFormInput();
7373
echo
7474
"<form action='' method='POST'
75-
onsubmit='return confirm(\"Are you sure you want to approve $uid ?\");'>
75+
onsubmit='return confirm(\"Are you sure you want to approve $uid_escaped ?\");'>
7676
$CSRFTokenHiddenFormInput
7777
<input type='hidden' name='form_type' value='reqChild'>
78-
<input type='hidden' name='uid' value='$uid'>
79-
<input type='hidden' name='pi' value='$gid'>
78+
<input type='hidden' name='uid' value='$uid_escaped'>
79+
<input type='hidden' name='pi' value='$gid_escaped'>
8080
<input type='submit' name='action' value='Approve'>
8181
<input type='submit' name='action' value='Deny'></form>";
8282
echo "</td>";

0 commit comments

Comments
 (0)