We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1f1e345 commit 7a0034cCopy full SHA for 7a0034c
src/Plugin/AddPathPlugin.php
@@ -39,7 +39,7 @@ public function __construct(UriInterface $uri)
39
*/
40
public function handleRequest(RequestInterface $request, callable $next, callable $first)
41
{
42
- if (strpos($request->getUri()->getPath(), $this->uri->getPath()) !== 0) {
+ if (0 !== strpos($request->getUri()->getPath(), $this->uri->getPath())) {
43
$request = $request->withUri($request->getUri()
44
->withPath($this->uri->getPath().$request->getUri()->getPath())
45
);
0 commit comments