Skip to content

In some cases, files are not found and strange error when bin uuis starts with '

with one file we get a MySQL error: Syntax error near ... LIKE '%'...%' ...
because the $objFile->uuid in line 55 of UsageFinder.php starts with a "'".

And when we check some files they are not found.

When we change line 55
from: $columns_array[] = "`".$columns->Field."` LIKE '%".$objFile->uuid."%'";
to: $columns_array[] = "`".$columns->Field."` LIKE '%".\StringUtil::binToUuid($objFile->uuid)."%'";
everything works perfect.

I will send a merge request to solve this issue.

Edited by Arne Borchert