@@ -440,7 +440,7 @@ abstract class Command {
$start = strpos($key, '{');
if ($start !== false) {
- $end = strpos($key, '}');
+ $end = strpos($key, '}', $start);
if ($end !== false) {
$key = substr($key, ++$start, $end - $start);
}