![Picture of Josep Sanz Campderrós Picture of Josep Sanz Campderrós](/picture/user/985074.jpg)
Josep Sanz Campderrós - 2024-11-04 09:55:54
This fix solve an issue when hex contains non hexadecimal chars, this bug was detected with php 8.0.
Replace the line:
$h = HexDec($hex = strtolower(substr($value, $position+1, 2)));
By the follow two lines:
$hex = strtolower(substr($value, $position+1, 2));
$h = ctype_xdigit($hex) ? HexDec($hex) : -1;
With these lines, the issue will be solved.