summaryrefslogtreecommitdiffstats
path: root/remote.php
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-08-28 11:08:24 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-08-28 11:08:24 -0400
commit4ac7c414c4c676be779524ef6175f5e77522bca9 (patch)
tree64fb89eaf2d1cb0ef209fbe9ffe1678089407301 /remote.php
parentc53310e49b2da37bb6d4193e2aa540596fe95658 (diff)
downloadnextcloud-server-4ac7c414c4c676be779524ef6175f5e77522bca9.tar.gz
nextcloud-server-4ac7c414c4c676be779524ef6175f5e77522bca9.zip
Check if path info is empty for remote.php, prevent error
Diffstat (limited to 'remote.php')
-rw-r--r--remote.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/remote.php b/remote.php
index 41d2a7ab349..809a4a9bf54 100644
--- a/remote.php
+++ b/remote.php
@@ -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;
}