Skip to content

Commit

Permalink
Merge pull request from GHSA-x7g2-wrrp-r6h3
Browse files Browse the repository at this point in the history
It is also recommended as per php documentation.
  • Loading branch information
mohit-rocks committed Aug 30, 2021
1 parent 6b1f10e commit 95fecff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/bundles/PointBundle/Controller/TriggerController.php
Expand Up @@ -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));

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

0 comments on commit 95fecff

Please sign in to comment.