Skip to content

Commit ef8252e

Browse files
committed
minor #60285 [Form][HttpFoundation] Fix overwriting an array element (wkania)
This PR was merged into the 6.4 branch. Discussion ---------- [Form][HttpFoundation] Fix overwriting an array element | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | yes | New feature? | no | Deprecations? | no | Issues | | License | MIT `empty_data` is overwritten in the line 51-52 `$server['SCRIPT_NAME']` is assigned twice with the same value: line 609 and 610 line 734 and 737 Commits ------- d49a058bd4d Fix overwriting an array element
2 parents 3f0c7ea + 7965dc6 commit ef8252e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

Tests/RequestTest.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,6 @@ public function testGetUri()
604604

605605
$server['REDIRECT_QUERY_STRING'] = 'query=string';
606606
$server['REDIRECT_URL'] = '/path/info';
607-
$server['SCRIPT_NAME'] = '/index.php';
608607
$server['QUERY_STRING'] = 'query=string';
609608
$server['REQUEST_URI'] = '/path/info?toto=test&1=1';
610609
$server['SCRIPT_NAME'] = '/index.php';
@@ -731,7 +730,6 @@ public function testGetUriForPath()
731730

732731
$server['REDIRECT_QUERY_STRING'] = 'query=string';
733732
$server['REDIRECT_URL'] = '/path/info';
734-
$server['SCRIPT_NAME'] = '/index.php';
735733
$server['QUERY_STRING'] = 'query=string';
736734
$server['REQUEST_URI'] = '/path/info?toto=test&1=1';
737735
$server['SCRIPT_NAME'] = '/index.php';

0 commit comments

Comments
 (0)