Skip to content
Snippets Groups Projects
Commit d1076d7c authored by Jared Hancock's avatar Jared Hancock
Browse files

oops: Avoid infinite recursion for database error logging

parent 3fd6e04d
No related branches found
No related tags found
No related merge requests found
......@@ -270,6 +270,10 @@ class osTicket {
$e->getTraceAsString());
$error .= nl2br("\n\n---- "._S('Backtrace')." ----\n".$bt);
// Prevent recursive loops through this code path
if (substr_count($bt, __FUNCTION__) > 1)
return;
return $this->log(LOG_ERR, $title, $error, $alert);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment