From d2240cd8f24b0fe1bf68d5e8897b9c2c3de69cd6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Fri, 2 Jun 2017 09:30:26 +0200 Subject: [PATCH] Fix phpseclib method invocation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Apparently this has been broken for quite some time on PHP 5 and nobody noticed. Signed-off-by: Michal Čihař --- libraries/Util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/Util.php b/libraries/Util.php index ba7e8980cf..64dd51fd92 100644 --- a/libraries/Util.php +++ b/libraries/Util.php @@ -4883,7 +4883,7 @@ class Util { $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'; }