Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
drupal
Manage
Activity
Members
Labels
Plan
Wiki
Custom issue tracker
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
project
drupal
Merge requests
!7685
Issue
#3442833
: Added datatype to $url argument.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3442833
: Added datatype to $url argument.
issue/drupal-3442833:3442833-undefined-array-key
into
10.2.x
Overview
0
Commits
4
Pipelines
4
Changes
1
Open
Vivek Panicker
requested to merge
issue/drupal-3442833:3442833-undefined-array-key
into
10.2.x
1 year ago
Overview
0
Commits
4
Pipelines
4
Changes
1
Expand
Closes
#3442833
0
0
Merge request reports
Compare
10.2.x
version 2
0af51c8a
1 year ago
version 1
75178769
1 year ago
10.2.x (HEAD)
and
latest version
latest version
fecb68d7
4 commits,
1 year ago
version 2
0af51c8a
2 commits,
1 year ago
version 1
75178769
1 commit,
1 year ago
1 file
+
5
−
3
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/lib/Drupal/Component/Utility/UrlHelper.php
+
5
−
3
Options
@@ -210,9 +210,11 @@ public static function parse($url) {
$parts
=
explode
(
'?'
,
$url
,
2
);
// Don't support URLs without a path, like 'http://'.
[,
$path
]
=
explode
(
'://'
,
$parts
[
0
],
2
);
if
(
$path
!=
''
)
{
$options
[
'path'
]
=
$parts
[
0
];
if
(
!
empty
(
$parts
[
0
]))
{
[,
$path
]
=
explode
(
'://'
,
$parts
[
0
],
2
);
if
(
$path
!=
''
)
{
$options
[
'path'
]
=
$parts
[
0
];
}
}
// If there is a query string, transform it into keyed query parameters.
if
(
isset
(
$parts
[
1
]))
{
Loading