samyk/evercookie — Issue #12: undefined index notice
Author: mrnnn
Created: 2012-02-17 11:00:45+00:00
State: open

Hey hey.

I'm getting a lot of errors for undefined indexes here:

for ($i = 0; $i < count($data_arr); $i += 3)
{
$color = imagecolorallocate($gd, ord($data_arr[$i]), ord($data_arr[$i+1]), ord($data_arr[$i+2]));

Which makes sense I guess, since you're going up to $i+2, so it should be smthing like
for ($i = 0; $i < count($data_arr) - 2; $i += 3)

I guess

Not sure if this will break the whole png method or if this is just fixing the symptoms instead of fixing the cause though :-)