Fix getRawPathInfo for the '/' edge case

This commit is contained in:
Robin Appelman 2013-11-27 21:28:54 +01:00
parent c47e46fda0
commit 885d04bc86

View file

@ -165,7 +165,11 @@ class OC_Request {
if (strpos($path_info, $name) === 0) {
$path_info = substr($path_info, strlen($name));
}
return $path_info;
if($path_info === '/'){
return '';
} else {
return $path_info;
}
}
/**