]> source.dussan.org Git - nextcloud-server.git/commitdiff
Check if path info is empty for remote.php, prevent error
authorMichael Gapczynski <mtgap@owncloud.com>
Tue, 28 Aug 2012 15:08:24 +0000 (11:08 -0400)
committerMichael Gapczynski <mtgap@owncloud.com>
Tue, 28 Aug 2012 15:08:24 +0000 (11:08 -0400)
remote.php

index 41d2a7ab349c32f96a972d03f945d0a666a886a0..809a4a9bf54b1e0643dd5eeea57f5f22e1cd75e6 100644 (file)
@@ -2,7 +2,7 @@
 $RUNTIME_NOAPPS = TRUE;
 require_once('lib/base.php');
 $path_info = OC_Request::getPathInfo();
-if ($path_info === false) {
+if ($path_info === false || $path_info === '') {
        OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND);
        exit;
 }