Skip to content

Commit c9f703a

Browse files
committed
Merge branch '7.3' into 7.4
* 7.3: [Mailer][MailJet] Fix forbidden headers case-sensitive comparison do not cast too big floats to int [Scheduler] Don’t get next run date from `null` [JsonPath] Add @alexandre-daubois as code owner do not pass more than one byte to ord()
2 parents 03d4736 + e659ffd commit c9f703a

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)