MantisBT: master-2.25 b5259af0

Author Committer Branch Timestamp Parent
dregad dregad master-2.25 2023-03-28 06:58 master-2.25 eb57c01d
Affected Issues  0032243: EVENT_LOG can produce stack overflow when LOG_DATABASE is enabled
Changeset

Prevent recursion when signaling EVENT_LOG event

If a plugin hooked on EVENT_LOG calls log_event() directly or indirectly
and the log level settings include the level for the event being logged,
MantisBT enters in an endless recursion loop.

Using a static variable to prevent recursion if EVENT_LOG has already
been signaled prevents this.

Fixes 0032243
Fixes https://github.com/mantisbt-plugins/EventLog/issues/3

mod - core/logging_api.php Diff File