Skip to content
Snippets Groups Projects
Unverified Commit 89ed509e authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Fix build

parent 67dc1b15
No related branches found
No related tags found
No related merge requests found
...@@ -277,6 +277,6 @@ class Metadata ...@@ -277,6 +277,6 @@ class Metadata
\SimpleSAML\Logger::maskErrors(E_ALL); \SimpleSAML\Logger::maskErrors(E_ALL);
$hidden = in_array(self::$HIDE_FROM_DISCOVERY, $metadata['EntityAttributes'][self::$ENTITY_CATEGORY]); $hidden = in_array(self::$HIDE_FROM_DISCOVERY, $metadata['EntityAttributes'][self::$ENTITY_CATEGORY]);
\SimpleSAML\Logger::popErrorMask(); \SimpleSAML\Logger::popErrorMask();
return $hidden; return $hidden === true;
} }
} }
...@@ -24,9 +24,14 @@ class Crypto ...@@ -24,9 +24,14 @@ class Crypto
*/ */
private static function _aesDecrypt($ciphertext, $secret) private static function _aesDecrypt($ciphertext, $secret)
{ {
if (!is_string($ciphertext)) {
throw new \InvalidArgumentException(
'Input parameter "$ciphertext" must be a string with more than 48 characters.'
);
}
/** @var int $len */ /** @var int $len */
$len = mb_strlen($ciphertext, '8bit'); $len = mb_strlen($ciphertext, '8bit');
if (!is_string($ciphertext) || $len < 48) { if ($len < 48) {
throw new \InvalidArgumentException( throw new \InvalidArgumentException(
'Input parameter "$ciphertext" must be a string with more than 48 characters.' 'Input parameter "$ciphertext" must be a string with more than 48 characters.'
); );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment