diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-28 11:13:02 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-08-28 11:13:02 -0400 |
commit | e05db00468d3707e617a431fb00d8c7c447644e6 (patch) | |
tree | a06718980ca4b55d2feb55640736605c69d86d9b /public.php | |
parent | da44e5405a8667afb476d76948554e01a637e89c (diff) | |
download | nextcloud-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.php | 4 |
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'); |