Skip to content

Commit fba6f8b

Browse files
authored
Merge pull request #25 from madmatt/Firesphere-patch-1
2 parents d42ff52 + 91223cd commit fba6f8b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

code/fieldtypes/EncryptedText.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ public function setValue($value, $record = array())
2525

2626
public function getDecryptedValue($value)
2727
{
28+
// Type hardening for PHP 8.1+
29+
$value = (string)$value;
2830
// Test if we're actually an encrypted value;
2931
if (ctype_xdigit($value) && strlen($value) > 130) {
3032
try {

0 commit comments

Comments
 (0)