Jacek Kowalski
2022-08-15 13080a6a4a8eb766bcafba84d65cc60cf89201db
Update UcrmHelper to catch Throwable, secure it against request forgery
1 files modified
6 ■■■■ changed files
src/UcrmHelper.php 6 ●●●● patch | view | raw | blame | history
src/UcrmHelper.php
@@ -78,13 +78,13 @@
                    throw new \RuntimeException('Failed to process event - invalid entity ID');
                }
                $this->event = $data;
            } catch (\Exception $e) {
                $this->event = $event;
            } catch (\Throwable $e) {
                $this->event = $e;
            }
        }
        if ($this->event instanceof \Exception) {
        if ($this->event instanceof \Throwable) {
            throw $this->event;
        }