瀏覽代碼

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

Daniele Alessandri 14 年之前
父節點
當前提交
4fc5ee65fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  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);
                     }