Check if path info is empty for remote.php, prevent error
This commit is contained in:
parent
c53310e49b
commit
4ac7c414c4
|
@ -2,7 +2,7 @@
|
||||||
$RUNTIME_NOAPPS = TRUE;
|
$RUNTIME_NOAPPS = TRUE;
|
||||||
require_once('lib/base.php');
|
require_once('lib/base.php');
|
||||||
$path_info = OC_Request::getPathInfo();
|
$path_info = OC_Request::getPathInfo();
|
||||||
if ($path_info === false) {
|
if ($path_info === false || $path_info === '') {
|
||||||
OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND);
|
OC_Response::setStatus(OC_Response::STATUS_NOT_FOUND);
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue