Explorar el Código

Look for a closing curly brace in a string only after the index of the opening one when using key tags.

Daniele Alessandri hace 14 años
padre
commit
4fc5ee65fd
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      lib/Predis.php

+ 1 - 1
lib/Predis.php

@@ -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);
                     }