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
!754
Issue
#3217374
: SIMPLETEST_BASE_URL does not validate scheme
Code
Review changes
Check out branch
Download
Patches
Plain diff
Open
Issue
#3217374
: SIMPLETEST_BASE_URL does not validate scheme
issue/drupal-3217374:3217374-simpletestbaseurl-does-not
into
9.3.x
Overview
6
Commits
7
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Open
Björn Brala
requested to merge
issue/drupal-3217374:3217374-simpletestbaseurl-does-not
into
9.3.x
3 years ago
Overview
6
Commits
7
Pipelines
0
Changes
1
All threads resolved!
Hide all comments
Expand
0
0
Merge request reports
Compare
9.3.x
version 6
cee9211a
3 years ago
version 5
eba81c01
3 years ago
version 4
d66dbd5a
3 years ago
version 3
fe8548d6
3 years ago
version 2
7ae254db
3 years ago
version 1
7a054e6a
3 years ago
9.3.x (HEAD)
and
latest version
latest version
b5837f3e
7 commits,
3 years ago
version 6
cee9211a
6 commits,
3 years ago
version 5
eba81c01
5 commits,
3 years ago
version 4
d66dbd5a
4 commits,
3 years ago
version 3
fe8548d6
3 commits,
3 years ago
version 2
7ae254db
2 commits,
3 years ago
version 1
7a054e6a
1 commit,
3 years ago
1 file
+
7
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
core/lib/Drupal/Core/Test/FunctionalTestSetupTrait.php
+
7
−
0
Options
@@ -594,6 +594,13 @@ protected function setupBaseUrl() {
);
}
$valid_url_schemes
=
[
'http'
,
'https'
];
if
(
!
in_array
(
strtolower
(
$parsed_url
[
'scheme'
]),
$valid_url_schemes
,
TRUE
))
{
throw
new
\Exception
(
'You must provide valid scheme for the SIMPLETEST_BASE_URL environment variable. Valid schema are: http, https.'
);
}
$this
->
baseUrl
=
$base_url
;
// If the passed URL schema is 'https' then setup the $_SERVER variables
Loading