Skip to content

Commit

Permalink
Hack for plus signs being converted to plusses laminas/laminas-diacto…
Browse files Browse the repository at this point in the history
  • Loading branch information
Danack committed Jun 14, 2023
1 parent 9479fed commit 9c84672
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Asm/Encrypter/OpenSslEncrypter.php
Expand Up @@ -21,6 +21,10 @@ class OpenSslEncrypter implements Encrypter
private function __construct(string $keyName, string $encodedKey)
{
$this->keyName = $keyName;
// Pluses are converted to spaces by:
// https://github.com/laminas/laminas-diactoros/issues/165
$encodedKey = str_replace(" ", "+", $encodedKey);

$decode_result = base64_decode($encodedKey, true);

if ($decode_result === false) {
Expand Down

0 comments on commit 9c84672

Please sign in to comment.