diff options
author | Andy Scherzinger <info@andy-scherzinger.de> | 2024-08-06 20:17:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-08-06 20:17:15 +0200 |
commit | a455283651f4ed40913af90a6d7ad5ef96c69d75 (patch) | |
tree | d7d73434725826a65a6a7c237a630f59c4cc7dde | |
parent | 3c4ee711c1cfc95f92e1448afcd0219a7e6b3bbd (diff) | |
parent | 6b149be3163cee173bacd53fda52837bd33b4871 (diff) | |
download | nextcloud-server-a455283651f4ed40913af90a6d7ad5ef96c69d75.tar.gz nextcloud-server-a455283651f4ed40913af90a6d7ad5ef96c69d75.zip |
Merge pull request #47061 from nextcloud/fix/avoid-collision-of-webhook-calls
fix(webhook_listeners): Avoid collision between two identical calls at the same second
-rw-r--r-- | apps/webhook_listeners/lib/Listener/WebhooksEventListener.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/webhook_listeners/lib/Listener/WebhooksEventListener.php b/apps/webhook_listeners/lib/Listener/WebhooksEventListener.php index d0b347baed7..6b40af1463e 100644 --- a/apps/webhook_listeners/lib/Listener/WebhooksEventListener.php +++ b/apps/webhook_listeners/lib/Listener/WebhooksEventListener.php @@ -50,6 +50,8 @@ class WebhooksEventListener implements IEventListener { [ $data, $webhookListener->getId(), + /* Random string to avoid collision with another job with the same parameters */ + bin2hex(random_bytes(5)), ] ); } |