Skip to content
Snippets Groups Projects
Commit 4ac7c414 authored by Michael Gapczynski's avatar Michael Gapczynski
Browse files

Check if path info is empty for remote.php, prevent error

parent c53310e4
Branches
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment