Skip to content
Snippets Groups Projects

S13933 Ausgabe von Client Remote IP und falls vorhanden auch FE-Username.

Merged Enis Nuredini requested to merge S13933_sip_report_IP_adress_and_FE_user into develop
1 file
+ 8
0
Compare changes
  • Side-by-side
  • Inline
@@ -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