summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-01-09 12:42:53 +0100
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-01-09 12:42:53 +0100
commitcde618472528cfca1c91dad76718d9aec738f91f (patch)
tree0c917392a0921e0b9b679a2e3d1a226385cedb51 /apps
parent258edce92ecbc9a15a5e48e65c986ffaaa50ce06 (diff)
downloadnextcloud-server-cde618472528cfca1c91dad76718d9aec738f91f.tar.gz
nextcloud-server-cde618472528cfca1c91dad76718d9aec738f91f.zip
SQL limit cleanup
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/public.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index 362dc2d0c85..a91efce888d 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -7,7 +7,7 @@ OC_App::loadApps();
// support will be removed in OC 5.0,a
if (isset($_GET['token'])) {
unset($_GET['file']);
- $qry = \OC_DB::prepare('SELECT `source` FROM `*PREFIX*sharing` WHERE `target` = ? LIMIT 1');
+ $qry = \OC_DB::prepare('SELECT `source` FROM `*PREFIX*sharing` WHERE `target` = ?', 1);
$filepath = $qry->execute(array($_GET['token']))->fetchOne();
if(isset($filepath)) {
$info = OC_FileCache_Cached::get($filepath, '');