summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/ajax/shareinfo.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-06-16 12:42:28 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-16 12:42:28 +0200
commita469efb1f1a727255731b8fe8e1d0354e245695f (patch)
treef9886019cc8600f6bcfc2837e645fd96e10578b3 /apps/files_sharing/ajax/shareinfo.php
parent9670d3e98b2fdfb8a3865dcaf954b1fef5f1e574 (diff)
downloadnextcloud-server-a469efb1f1a727255731b8fe8e1d0354e245695f.tar.gz
nextcloud-server-a469efb1f1a727255731b8fe8e1d0354e245695f.zip
Add some safety checks
Diffstat (limited to 'apps/files_sharing/ajax/shareinfo.php')
-rw-r--r--apps/files_sharing/ajax/shareinfo.php4
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/files_sharing/ajax/shareinfo.php b/apps/files_sharing/ajax/shareinfo.php
index be26c357978..e87b0779e8d 100644
--- a/apps/files_sharing/ajax/shareinfo.php
+++ b/apps/files_sharing/ajax/shareinfo.php
@@ -6,9 +6,7 @@
* See the COPYING-README file.
*/
-if (!\OC_App::isEnabled('files_sharing')) {
- exit;
-}
+OCP\JSON::checkAppEnabled('files_sharing');
if (!isset($_GET['t'])) {
\OC_Response::setStatus(400); //400 Bad Request