summaryrefslogtreecommitdiffstats
path: root/public.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-08-30 21:49:28 +0200
committerBart Visscher <bartv@thisnet.nl>2012-08-30 21:49:28 +0200
commitb483f2aab856e3324026588a9702043072fd7ad2 (patch)
tree9a5696d43ae53160bee592e1b6874185cbd98ad4 /public.php
parentcbaf858dea0f2094805edb6aa223bdd6877fff5b (diff)
parent598815b21e94219eb66684c64802e165a35180ad (diff)
downloadnextcloud-server-b483f2aab856e3324026588a9702043072fd7ad2.tar.gz
nextcloud-server-b483f2aab856e3324026588a9702043072fd7ad2.zip
Merge branch 'master' into routing
Conflicts: apps/contacts/js/contacts.js apps/contacts/lib/search.php apps/files_archive/js/archive.js apps/gallery/lib/tiles.php apps/gallery/templates/index.php lib/ocs.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');