Group names with spaces create multiple group memberships

Issue #401 resolved
Orsiris DE JONG created an issue

Hello,

I have a setup with piler connected to an Active Directory. When creating a trivial group in piler with a white space in it (eg: "TEST GROUP"), member users will be member of groups "TEST" and "GROUP", this not working.

Piler version: piler 1.2.0-pre, build 887,

Comments (2)

  1. Janos SUTO repo owner

    Edit controller/user/settings.php, and replace this:

    $auditgroups = preg_replace("/\s/", ", ", $this->model_group_group->get_groups_by_email($session->get("emails")));
    

    with this:

    $auditgroups = preg_replace("/\n/", ", ", $this->model_group_group->get_groups_by_email($session->get("emails")));
    
  2. Log in to comment