Skip to content

Commit

Permalink
Fix phpseclib method invocation
Browse files Browse the repository at this point in the history
Apparently this has been broken for quite some time on PHP 5 and nobody
noticed.

Signed-off-by: Michal Čihař <michal@cihar.com>
  • Loading branch information
nijel committed Jun 2, 2017
1 parent a12a41e commit d2240cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/Util.php
Expand Up @@ -4883,7 +4883,7 @@ public static function generateRandom($length)
{
$result = '';
if (class_exists('phpseclib\\Crypt\\Random')) {
$random_func = 'phpseclib\\Crypt\\Random::string';
$random_func = array('phpseclib\\Crypt\\Random', 'string');
} else {
$random_func = 'openssl_random_pseudo_bytes';
}
Expand Down

0 comments on commit d2240cd

Please sign in to comment.