Skip to content

Commit ffcb861

Browse files
committed
Forces lowercase uniqid; was not using defined prepend
1 parent 2b7b258 commit ffcb861

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/Puphpet/MainBundle/Twig/BaseExtension.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,13 @@ public function getFilters()
2929
];
3030
}
3131

32-
public function uniqid()
32+
public function uniqid($prefix)
3333
{
3434
$random = $this->randomLib->getLowStrengthGenerator();
3535

36-
$characters = '0123456789abcdefghijklmnopqrstuvwxyz' .
37-
'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
36+
$characters = '0123456789abcdefghijklmnopqrstuvwxyz';
3837

39-
return $random->generateString(12, $characters);
38+
return $prefix . $random->generateString(12, $characters);
4039
}
4140

4241
public function mt_rand($min, $max)

0 commit comments

Comments
 (0)