From: Michael Gapczynski Date: Tue, 28 Aug 2012 15:08:24 +0000 (-0400) Subject: Check if path info is empty for remote.php, prevent error X-Git-Tag: v4.5.0beta1~16 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4ac7c414c4c676be779524ef6175f5e77522bca9;p=nextcloud-server.git Check if path info is empty for remote.php, prevent error --- 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; }