Skip to content

Commit 1073cb3

Browse files
authored
Merge pull request #122 from simonLeary42/patch-3
trim PI request
2 parents d9628d7 + ee09cf3 commit 1073cb3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

webroot/panel/groups.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
if (isset($_POST["form_name"])) {
1212
if (isset($_POST["pi"])) {
13-
$pi_account = new UnityGroup($_POST["pi"], $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
13+
$pi_account = new UnityGroup(trim($_POST["pi"]), $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
1414
if (!$pi_account->exists()) {
1515
// "\'" instead of "'", otherwise it will close a single quote used to place the message
1616
array_push($modalErrors, "This PI doesn\'t exist");

0 commit comments

Comments
 (0)