Skip to content

Commit f34f076

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

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

system/Config/BaseConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public function __construct()
9494
$this->initEnvValue($this->$property, $property, $prefix, $shortPrefix);
9595

9696
// Handle hex2bin prefix
97-
if ($shortPrefix === 'encryption' && $property === 'key' && substr($this->$property, 0, 8) === 'hex2bin:')
97+
if ($shortPrefix === 'encryption' && $property === 'key' && strpos($this->$property, 'hex2bin:') === 0)
9898
{
9999
$this->$property = hex2bin(substr($this->$property, 8));
100100
}

0 commit comments

Comments
 (0)