Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
cryptolog
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
cryptolog
Commits
9da2d055
Commit
9da2d055
authored
6 months ago
by
mark burdett
Browse files
Options
Downloads
Patches
Plain Diff
Fix static analysis issues
parent
022b4bd3
No related branches found
No related tags found
No related merge requests found
Pipeline
#348570
failed
6 months ago
Stage: build
Stage: validate
Stage: test
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cryptolog.install
+1
-2
1 addition, 2 deletions
cryptolog.install
tests/modules/cryptolog_test/src/TestProxyMiddleware.php
+5
-1
5 additions, 1 deletion
tests/modules/cryptolog_test/src/TestProxyMiddleware.php
with
6 additions
and
3 deletions
cryptolog.install
+
1
−
2
View file @
9da2d055
...
...
@@ -10,8 +10,7 @@ use Drupal\Core\Url;
/**
* Implements hook_requirements().
*
* phpcs:ignore
* @return array<string, array{title: Stringable, description: Stringable, value: Stringable|string, severity: int }>
* @phpstan-ignore missingType.iterableValue
*/
function
cryptolog_requirements
(
string
$phase
):
array
{
$requirements
[
'cryptolog_ipv6'
][
'title'
]
=
t
(
'Cryptolog IPv6 support'
);
...
...
This diff is collapsed.
Click to expand it.
tests/modules/cryptolog_test/src/TestProxyMiddleware.php
+
5
−
1
View file @
9da2d055
...
...
@@ -26,9 +26,13 @@ class TestProxyMiddleware implements HttpKernelInterface {
// Add the test runner IP address as trusted proxy.
$proxies
=
$request
->
getTrustedProxies
();
$proxies
[]
=
'REMOTE_ADDR'
;
$trustedHeaderSet
=
$request
->
getTrustedHeaderSet
();
if
(
$trustedHeaderSet
<
0
||
$trustedHeaderSet
>
63
)
{
throw
new
\UnexpectedValueException
(
'Invalid trusted header set.'
);
}
$request
::
setTrustedProxies
(
$proxies
,
$
request
->
getT
rustedHeaderSet
()
$
t
rustedHeaderSet
);
return
$this
->
httpKernel
->
handle
(
$request
,
$type
,
$catch
);
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment