mirror of
https://github.com/appwrite/appwrite.git
synced 2026-11-18 20:36:03 +00:00
Check if path contains key before replacing
This commit is contained in:
1 parent
3530d3dfe0
commit
03a2a00b30
1 file changed
+3
-1
@@ -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