Skip to content

Commit cc6c07e

Browse files
michalsnsamsonasik
andauthored
Update system/Config/DotEnv.php
Co-authored-by: Abdul Malik Ikhsan <samsonasik@gmail.com>
1 parent f34f076 commit cc6c07e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Config/DotEnv.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public function normaliseVariable(string $name, string $value = ''): array
183183
$value = $this->resolveNestedVariables($value);
184184

185185
// Handle hex2bin prefix
186-
if ($name === 'encryption.key' && substr($value, 0, 8) === 'hex2bin:')
186+
if ($name === 'encryption.key' && strpos($value, 'hex2bin:') === 0)
187187
{
188188
$value = hex2bin(substr($value, 8));
189189
}

0 commit comments

Comments
 (0)