mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Check if path contains key before replacing
This commit is contained in:
@@ -32,7 +32,9 @@ class Resolvers
|
||||
|
||||
$path = $route->getPath();
|
||||
foreach ($args as $key => $value) {
|
||||
$path = \str_replace(':' . $key, $value, $path);
|
||||
if (\str_contains($path, $key)) {
|
||||
$path = \str_replace(':' . $key, $value, $path);
|
||||
}
|
||||
}
|
||||
|
||||
$swoole->server['request_method'] = $route->getMethod();
|
||||
|
||||
Reference in New Issue
Block a user