From 13080a6a4a8eb766bcafba84d65cc60cf89201db Mon Sep 17 00:00:00 2001
From: Jacek Kowalski <Jacek@jacekk.info>
Date: Mon, 15 Aug 2022 19:38:55 +0000
Subject: [PATCH] Update UcrmHelper to catch Throwable, secure it against request forgery
---
src/UcrmHelper.php | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/UcrmHelper.php b/src/UcrmHelper.php
index ced5aac..9d709f1 100644
--- a/src/UcrmHelper.php
+++ b/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;
}
--
Gitblit v1.10.0