Skip to content

Commit 91ac5b0

Browse files
committed
fix: hand empty string secrets
1 parent 7d7e355 commit 91ac5b0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

plugin/routes.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
'pattern' => 'komments/cron/notification/(:any)',
100100
'method' => 'GET',
101101
'action' => function ($secret) {
102-
if (option('mauricerenck.komments.notifications.cronSecret', '') === $secret) {
102+
if (option('mauricerenck.komments.notifications.cronSecret', '') === $secret && $secret !== '') {
103103
$notifications = new KommentNotifications();
104104
$notifications->sendNotifications();
105105

0 commit comments

Comments
 (0)