Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
qfq
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
typo3
qfq
Merge requests
!422
S13933 Ausgabe von Client Remote IP und falls vorhanden auch FE-Username.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
S13933 Ausgabe von Client Remote IP und falls vorhanden auch FE-Username.
S13933_sip_report_IP_adress_and_FE_user
into
develop
Overview
0
Commits
3
Pipelines
2
Changes
1
Merged
Enis Nuredini
requested to merge
S13933_sip_report_IP_adress_and_FE_user
into
develop
2 years ago
Overview
0
Commits
3
Pipelines
2
Changes
1
Expand
0
0
Merge request reports
Compare
develop
version 1
a850e53c
2 years ago
develop (base)
and
latest version
latest version
04ca482c
3 commits,
2 years ago
version 1
a850e53c
1 commit,
2 years ago
1 file
+
8
−
0
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
extension/Classes/Core/Store/Sip.php
+
8
−
0
Options
@@ -335,6 +335,8 @@ class Sip {
*/
public
function
getVarsFromSip
(
$s
)
{
static
$exceptionAlreadyThrown
=
false
;
# Check if parameter is manipulated
if
(
strlen
(
$s
)
!=
SIP_TOKEN_LENGTH
)
{
Config
::
attackDetectedExitNow
(
array
(),
'Invalid SIP token length: '
.
strlen
(
$s
)
.
" _GET['s']="
.
htmlentities
(
$s
));
@@ -347,6 +349,12 @@ class Sip {
$sessionVar
=
Session
::
get
(
$s
);
if
(
$sessionVar
===
false
)
{
if
(
$exceptionAlreadyThrown
)
{
// There is already an exception throw for Store SIP: just return an empty array and do not throw a new exception.
return
array
();
}
$exceptionAlreadyThrown
=
true
;
throw
new
\UserFormException
(
"SIP '
$s
' not registered - please reload the previous site and try again."
,
ERROR_SIP_NOT_FOUND
);
}
Loading