mirror of
https://github.com/predis/predis.git
synced 2026-09-18 14:28:54 +00:00
Look for a closing curly brace in a string only after the index of the opening one when using key tags.
This commit is contained in:
+1
-1
@@ -449,7 +449,7 @@ abstract class Command implements ICommand {
|
||||
|
||||
$start = strpos($key, '{');
|
||||
if ($start !== false) {
|
||||
$end = strpos($key, '}');
|
||||
$end = strpos($key, '}', $start);
|
||||
if ($end !== false) {
|
||||
$key = substr($key, ++$start, $end - $start);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user