We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e953a9 commit cbdcffcCopy full SHA for cbdcffc
src/Symfony/Component/JsonPath/Tokenizer/JsonPathTokenizer.php
@@ -88,9 +88,8 @@ public static function tokenize(JsonPath $query): array
88
if ($inQuote) {
89
// literal control characters (U+0000 through U+001F) in quoted strings
90
// are not be allowed unless they are part of escape sequences
91
- $ord = \ord($char);
92
if ($inBracket) {
93
- if ($ord <= 31) {
+ if (\ord($char[0]) <= 31) {
94
if (!self::isEscaped($chars, $i)) {
95
throw new InvalidJsonPathException('control characters are not allowed in quoted strings.', $position);
96
}
0 commit comments