Skip to content

Commit e148788

Browse files
Merge branch '5.4' into 6.2
* 5.4: [Translation] Decouple TranslatorPathsPass from "debug." convention [VarDumper] Add a bit of test coverage [TwigBridge] Fix flagged malicious url [HttpClient] Fix encoding "+" in URLs [DependencyInjection] Fix dumping array of enums parameters Bump Symfony version to 5.4.22 Update VERSION for 5.4.21 Update CONTRIBUTORS for 5.4.21 Update CHANGELOG for 5.4.21 Removed @internal tag on TraceableAuthenticator::getAuthenticator()
2 parents 0a5be6c + 3f53e3f commit e148788

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

HttpClientTrait.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -622,7 +622,6 @@ private static function mergeQueryString(?string $queryString, array $queryArray
622622
'%28' => '(',
623623
'%29' => ')',
624624
'%2A' => '*',
625-
'%2B' => '+',
626625
'%2C' => ',',
627626
'%2F' => '/',
628627
'%3A' => ':',

Tests/HttpClientTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -176,8 +176,8 @@ public static function provideParseUrl(): iterable
176176
yield [['http:', null, null, null, null], 'http:'];
177177
yield [['http:', null, 'bar', null, null], 'http:bar'];
178178
yield [[null, null, 'bar', '?a=1&c=c', null], 'bar?a=a&b=b', ['b' => null, 'c' => 'c', 'a' => 1]];
179-
yield [[null, null, 'bar', '?a=b+c&b=b-._~!$%26/%27()[]*+,;%3D:@%25\\^`{|}', null], 'bar?a=b+c', ['b' => 'b-._~!$&/\'()[]*+,;=:@%\\^`{|}']];
180-
yield [[null, null, 'bar', '?a=b+%20c', null], 'bar?a=b+c', ['a' => 'b+ c']];
179+
yield [[null, null, 'bar', '?a=b+c&b=b-._~!$%26/%27()[]*%2B,;%3D:@%25\\^`{|}', null], 'bar?a=b+c', ['b' => 'b-._~!$&/\'()[]*+,;=:@%\\^`{|}']];
180+
yield [[null, null, 'bar', '?a=b%2B%20c', null], 'bar?a=b+c', ['a' => 'b+ c']];
181181
yield [[null, null, 'bar', '?a[b]=c', null], 'bar', ['a' => ['b' => 'c']]];
182182
yield [[null, null, 'bar', '?a[b[c]=d', null], 'bar?a[b[c]=d', []];
183183
yield [[null, null, 'bar', '?a[b][c]=dd', null], 'bar?a[b][c]=d&e[f]=g', ['a' => ['b' => ['c' => 'dd']], 'e[f]' => null]];

0 commit comments

Comments
 (0)