Optimize when a pair of curly brackets for key tagging is missing.

This commit is contained in:
Daniele Alessandri
2011-01-05 12:44:37 +01:00
parent 455e56927a
commit 007ddaecfa
+5 -3
View File
@@ -439,9 +439,11 @@ abstract class Command {
$key = $this->_arguments[0];
$start = strpos($key, '{');
$end = strpos($key, '}');
if ($start !== false && $end !== false) {
$key = substr($key, ++$start, $end - $start);
if ($start !== false) {
$end = strpos($key, '}');
if ($end !== false) {
$key = substr($key, ++$start, $end - $start);
}
}
$this->_hash = $distributor->generateKey($key);