Skip to content

Process/Group bad implementation #24

@jazzkutya

Description

@jazzkutya

Hi,

in koolreport/src/processes/Group.php you calculate $index by concatenating group column values and then:
$index = strtolower($index) . md5($index);
there are 2 big issues here:

  • case sensitivity depends on md5() having a collision or not
  • it totally breaks when one group column value optionally starts with something that another group column value optionally ends with
    You should do implode($sepchar,$groupvalues) instead where $sepchar is one character that you need to ensure is not in the input by deleting them before. Good candidate is "\x00".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions