Fix path trimming

This commit is contained in:
Toby Zerner 2021-01-07 11:18:06 +10:00
parent 3632ab4cfc
commit 75a0d3ba22
1 changed files with 1 additions and 1 deletions

View File

@ -160,7 +160,7 @@ final class JsonApi implements RequestHandlerInterface
$len = strlen($basePath);
if (substr($path, 0, $len) === $basePath) {
$path = substr($path, $len + 1);
$path = substr($path, $len);
}
return $path;