Skip to content
Snippets Groups Projects
Commit 2cdec74e authored by Joas Schilling's avatar Joas Schilling
Browse files

Correctly escape the paths so we only display favorites instead of wildcards

parent 623d3497
No related branches found
No related tags found
No related merge requests found
...@@ -391,7 +391,7 @@ class Activity implements IExtension { ...@@ -391,7 +391,7 @@ class Activity implements IExtension {
} }
foreach ($favorites['folders'] as $favorite) { foreach ($favorites['folders'] as $favorite) {
$fileQueryList[] = '`file` LIKE ?'; $fileQueryList[] = '`file` LIKE ?';
$parameters[] = $favorite . '/%'; $parameters[] = \OC::$server->getDatabaseConnection()->escapeLikeParameter($favorite) . '/%';
} }
return [ return [
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment