Skip to content

Commit 4328a2d

Browse files
authored
Fix Parameter Tokenizer omitting first char of key
1 parent 7198c76 commit 4328a2d

File tree

1 file changed

+2
-2
lines changed
  • lib/internal/Magento/Framework/Filter/Template/Tokenizer

1 file changed

+2
-2
lines changed

lib/internal/Magento/Framework/Filter/Template/Tokenizer/Parameter.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function tokenize()
1919
{
2020
$parameters = [];
2121
$parameterName = '';
22-
while ($this->next()) {
22+
do {
2323
if ($this->isWhiteSpace()) {
2424
continue;
2525
} elseif ($this->char() != '=') {
@@ -28,7 +28,7 @@ public function tokenize()
2828
$parameters[$parameterName] = $this->getValue();
2929
$parameterName = '';
3030
}
31-
}
31+
} while ($this->next());
3232
return $parameters;
3333
}
3434

0 commit comments

Comments
 (0)