Skip to content

Commit f6f5352

Browse files
authoredMar 31, 2025
new_account trim _POST["pi"]
1 parent f6e979c commit f6f5352

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

Diff for: ‎webroot/panel/new_account.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
}
2323

2424
if ($_POST["new_user_sel"] == "not_pi") {
25-
$form_group = new UnityGroup($_POST["pi"], $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
25+
$form_group = new UnityGroup(trim($_POST["pi"]), $LDAP, $SQL, $MAILER, $REDIS, $WEBHOOK);
2626
if (!$form_group->exists()) {
2727
array_push($errors, "The selected PI does not exist");
2828
}

0 commit comments

Comments
 (0)