Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ef8252e

Browse filesBrowse 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
Copy full SHA for ef8252e

File tree

Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+0
-2
lines changed

‎Tests/RequestTest.php

Copy file name to clipboardExpand all lines: Tests/RequestTest.php
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.