Skip to content

Commit

Permalink
[BUGFIX] Do not try to log negative UID in DataHandler
Browse files Browse the repository at this point in the history
Ensure recuid is always int+ as the underlying
DB field is `unsigned`.

Resolves: #103101
Releases: main, 12.4, 11.5
Change-Id: I8fa06fa40260bffc5b01eedc4207aec150e7c849
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/83336
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: core-ci <typo3@b13.com>
  • Loading branch information
liayn authored and lolli42 committed Mar 7, 2024
1 parent de2b49f commit 24ee68c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion typo3/sysext/core/Classes/DataHandling/DataHandler.php
Expand Up @@ -9450,7 +9450,7 @@ public function log($table, $recuid, $action, $recpid, $error, $details, $detail
}
$this->errorLog[] = '[' . SystemLogType::DB . '.' . $action . '.' . $details_nr . ']: ' . $detailMessage;
}
return $this->BE_USER->writelog(SystemLogType::DB, $action, $error, $details_nr, $details, $data, $table, $recuid, $recpid, $event_pid, $NEWid);
return $this->BE_USER->writelog(SystemLogType::DB, $action, $error, $details_nr, $details, $data, $table, abs((int)$recuid), $recpid, $event_pid, $NEWid);
}

/**
Expand Down

0 comments on commit 24ee68c

Please sign in to comment.