]> source.dussan.org Git - nextcloud-server.git/commitdiff
404 if service is not set for public.php
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 28 Aug 2012 15:13:02 +0000 (11:13 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Tue, 28 Aug 2012 15:13:02 +0000 (11:13 -0400)
public.php

index 0581631f41ff2c776b9480878e785c33495946c5..e46559595fe4194283935949b0243b813e50cb1c 100644 (file)
@@ -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');