mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Fix key replacements
This commit is contained in:
@@ -249,9 +249,13 @@ class Resolvers
|
||||
return;
|
||||
}
|
||||
|
||||
$payload = \array_map(function ($property) {
|
||||
return \str_replace('$', '_', $property);
|
||||
}, $payload);
|
||||
foreach ($payload as $key => $value) {
|
||||
if (\str_starts_with($key, '$')) {
|
||||
$escapedKey = \str_replace('$', '_', $key);
|
||||
$payload[$escapedKey] = $value;
|
||||
unset($payload[$key]);
|
||||
}
|
||||
}
|
||||
|
||||
$resolve($payload);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user