fixed decoder
This commit is contained in:
@@ -426,7 +426,11 @@ class Renderer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected function decode(string $toDecode, string $salt): string {
|
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 '';
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user