Skip to content
Permalink
Browse files
Merge pull request from GHSA-x7g2-wrrp-r6h3
It is also recommended as per php documentation.
  • Loading branch information
mohit-rocks committed Aug 30, 2021
1 parent 6b1f10e commit 95fecff7abd0e477dd0db2fd8c55a4553fcac4c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/bundles/PointBundle/Controller/TriggerController.php
@@ -184,7 +184,7 @@ public function newAction($entity = null)

$session = $this->get('session');
$pointTrigger = $this->request->request->get('pointtrigger', []);
$sessionId = $pointTrigger['sessionId'] ?? 'mautic_'.sha1(uniqid(mt_rand(), true));
$sessionId = $pointTrigger['sessionId'] ?? 'mautic_'.sha1(uniqid(random_int(), true));

Check failure on line 187 in app/bundles/PointBundle/Controller/TriggerController.php

GitHub Actions / PHPSTAN

app/bundles/PointBundle/Controller/TriggerController.php#L187

Function random_int invoked with 0 parameters, 2 required.

if (!$this->get('mautic.security')->isGranted('point:triggers:create')) {
return $this->accessDenied();

0 comments on commit 95fecff

Please sign in to comment.