summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/files/lib/activity.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/activity.php b/apps/files/lib/activity.php
index d473120b31f..c171b3bfabf 100644
--- a/apps/files/lib/activity.php
+++ b/apps/files/lib/activity.php
@@ -391,7 +391,7 @@ class Activity implements IExtension {
}
foreach ($favorites['folders'] as $favorite) {
$fileQueryList[] = '`file` LIKE ?';
- $parameters[] = $favorite . '/%';
+ $parameters[] = \OC::$server->getDatabaseConnection()->escapeLikeParameter($favorite) . '/%';
}
return [