Fix getRawPathInfo for the '/' edge case
This commit is contained in:
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;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue