We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc18af0 commit 493bc1dCopy full SHA for 493bc1d
src/Html/HtmlBuilder.php
@@ -364,6 +364,7 @@ public function email(string $email): string
364
*
365
* @param string $value
366
* @return string
367
+ * @throws \Exception
368
*/
369
public function obfuscate(string $value): string
370
{
@@ -377,7 +378,7 @@ public function obfuscate(string $value): string
377
378
// To properly obfuscate the value, we will randomly convert each letter to
379
// its entity or hexadecimal representation, keeping a bot from sniffing
380
// the randomly obfuscated letters out of the string on the responses.
- switch (rand(1, 3)) {
381
+ switch (random_int(1, 3)) {
382
case 1:
383
$safe .= '&#'.ord($letter).';';
384
break;
0 commit comments