diff --git a/include/renderer.php b/include/renderer.php index 2e52e19..1e4d244 100644 --- a/include/renderer.php +++ b/include/renderer.php @@ -426,7 +426,11 @@ class Renderer { } protected function decode(string $toDecode, string $salt): string { - return $toDecode ? openssl_decrypt($toDecode, 'aes-256-cbc', $this->encryptionKey, 0, $salt) : ''; + try { + return $toDecode ? openssl_decrypt($toDecode, 'aes-256-cbc', $this->encryptionKey, 0, $salt) : ''; + } catch (exception $e) { + return ''; + } }