Fix getRawPathInfo for the '/' edge case

remotes/origin/stable6
Robin Appelman 2013-11-27 21:28:54 +07:00
parent c47e46fda0
commit 885d04bc86
1 changed files with 5 additions and 1 deletions

@ -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;
}
}
/**