Skip to content

Commit 62ea9bf

Browse files
Merge branch '7.4' into 8.0
* 7.4: (28 commits) [Console] Rename `#[Input]` to `#[MapInput]` [FrameworkBundle] Fix support of dumping workflow when workflow is decorated by TraceableWorkflow [JsonStreamer] Fix documentation link in README [Meta] Better exception when symfony link cannot read a JSON [Form] Add new `active_at`, `not_active_at` and `legal_tender` options to `CurrencyType` [Intl] Support time in generated data in currencies validity [Validator] Improve and complete Japanese translations [HtmlSanitizer] Remove redundant assignment to promoted property $config in constructor [Validator] Fix Polish translation for word count validation message [DependencyInjection][Routing] Deprecate XML configuration format [Validator] Review and fix Czech translation [DependencyInjection][Routing] Handle declaring services and routes using PHP arrays that follow the same shape as corresponding yaml files [Mailer][MailJet] Fix forbidden headers case-sensitive comparison [DependencyInjection][Config][Routing] Deprecate using `$this` or the internal scope of the loader from PHP config files [Config] Add array-shapes to generated config builders [DependencyInjection] Handle returning arrays and config-builders from config files [WebProfilerBundle] Simplify toolbar CSS do not use deprecated PHPUnit features replace PHPUnit annotation with attribute [Serializer] xml empty array encoding ...
2 parents 2c9ce54 + c9f703a commit 62ea9bf

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Tokenizer/JsonPathTokenizer.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,8 @@ public static function tokenize(JsonPath $query): array
8888
if ($inQuote) {
8989
// literal control characters (U+0000 through U+001F) in quoted strings
9090
// are not be allowed unless they are part of escape sequences
91-
$ord = \ord($char);
9291
if ($inBracket) {
93-
if ($ord <= 31) {
92+
if (\ord($char[0]) <= 31) {
9493
if (!self::isEscaped($chars, $i)) {
9594
throw new InvalidJsonPathException('control characters are not allowed in quoted strings.', $position);
9695
}

0 commit comments

Comments
 (0)