Skip to content
Snippets Groups Projects
Commit 885d04bc authored by Robin Appelman's avatar Robin Appelman
Browse files

Fix getRawPathInfo for the '/' edge case

parent c47e46fd
Branches
No related tags found
No related merge requests found
......@@ -165,8 +165,12 @@ class OC_Request {
if (strpos($path_info, $name) === 0) {
$path_info = substr($path_info, strlen($name));
}
if($path_info === '/'){
return '';
} else {
return $path_info;
}
}
/**
* @brief Check if this is a no-cache request
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment