Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
typo3
qfq
Commits
a850e53c
Commit
a850e53c
authored
Mar 21, 2022
by
enured
Browse files
S13933 Ausgabe von Client Remote IP und falls vorhanden auch FE-Username.
parent
7c78abf2
Pipeline
#6978
passed with stage
in 1 minute and 55 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
extension/Classes/Core/Store/Sip.php
View file @
a850e53c
...
...
@@ -345,9 +345,17 @@ class Sip {
# Check if index 's' exists.
$sessionVar
=
Session
::
get
(
$s
);
$sessionVarFeUser
=
Session
::
get
(
SESSION_FE_USER
);
$ip
=
$_SERVER
[
CLIENT_REMOTE_ADDRESS
];
// if given set fe-user to show in form exception
if
(
isset
(
$sessionVarFeUser
)
&&
$sessionVarFeUser
!=
''
){
$feUserMessage
=
" | FE-User:
$sessionVarFeUser
"
;
}
else
{
$feUserMessage
=
''
;
}
if
(
$sessionVar
===
false
)
{
throw
new
\
UserFormException
(
"SIP '
$s
' not registered - please reload the previous site and try again."
,
ERROR_SIP_NOT_FOUND
);
throw
new
\
UserFormException
(
"SIP '
$s
' not registered - please reload the previous site and try again.
IP:
$ip
$feUserMessage
"
,
ERROR_SIP_NOT_FOUND
);
}
// Decode parameter
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment