fixed decoder

This commit is contained in:
Torsten Schulz
2023-12-27 11:26:03 +01:00
parent 84d7b7e5c3
commit bab4569406

View File

@@ -426,7 +426,11 @@ class Renderer {
}
protected function decode(string $toDecode, string $salt): string {
try {
return $toDecode ? openssl_decrypt($toDecode, 'aes-256-cbc', $this->encryptionKey, 0, $salt) : '';
} catch (exception $e) {
return '';
}
}