koolphp / koolreport

This is an Open Source PHP Reporting Framework which you can use to write perfect data reports or to construct awesome dashboards using PHP
https://www.koolreport.com/
MIT License
226 stars 66 forks source link

Process/Group bad implementation #24

Open jazzkutya opened 5 years ago

jazzkutya commented 5 years ago

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:

jazzkutya commented 5 years ago

May be the "\x05" ENQ (enquiry) character is a better choice to avoid PHP's weakness of \x00 characters in strings (not all php function handle it well), It should not appear in ordinary text data.

koolphp commented 5 years ago

Thank you very much for your spots:

  1. We made the grouping is case-sensitive. If user do not want the case sensitive he may convert to lower case before grouping. Now I am thinking it could be better if there is option in Group process to allow the case insensitive.
  2. You are right, we will fix that.