Fix getRawPathInfo for the '/' edge case

remotes/origin/stable6
Robin Appelman 13 years ago
parent c47e46fda0
commit 885d04bc86
  1. 6
      lib/private/request.php

@ -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…
Cancel
Save