diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-09 12:42:53 +0100 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2013-01-09 12:42:53 +0100 |
commit | cde618472528cfca1c91dad76718d9aec738f91f (patch) | |
tree | 0c917392a0921e0b9b679a2e3d1a226385cedb51 /apps | |
parent | 258edce92ecbc9a15a5e48e65c986ffaaa50ce06 (diff) | |
download | nextcloud-server-cde618472528cfca1c91dad76718d9aec738f91f.tar.gz nextcloud-server-cde618472528cfca1c91dad76718d9aec738f91f.zip |
SQL limit cleanup
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/public.php | 2 |
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, ''); |