summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-28 11:13:02 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-28 11:13:02 -0400
commite05db00468d3707e617a431fb00d8c7c447644e6 (patch)
treea06718980ca4b55d2feb55640736605c69d86d9b /public.php
parentda44e5405a8667afb476d76948554e01a637e89c (diff)
downloadnextcloud-server-e05db00468d3707e617a431fb00d8c7c447644e6.tar.gz
nextcloud-server-e05db00468d3707e617a431fb00d8c7c447644e6.zip
404 if service is not set for public.php
Diffstat (limited to 'public.php')
-rw-r--r--public.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/public.php b/public.php
index 0581631f41f..e46559595fe 100644
--- a/public.php
+++ b/public.php
@@ -1,6 +1,10 @@
<?php
$RUNTIME_NOAPPS = TRUE;
require_once('lib/base.php');
+if (!isset($_GET['service'])) {
+ header('HTTP/1.0 404 Not Found');
+ exit;
+}
$file = OCP\CONFIG::getAppValue('core', 'public_' . strip_tags($_GET['service']));
if(is_null($file)){
header('HTTP/1.0 404 Not Found');