Skip to content

Commit ee09cf3

Browse files
authored
trim PI request
#99
1 parent d9628d7 commit ee09cf3

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)