mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
Remove the random_compat lib.
This commit is contained in:
parent
e4d5e4bee0
commit
484acfbf59
@ -68,9 +68,6 @@ Config::write($CONF);
|
||||
$PALANG = [];
|
||||
require_once("$incpath/languages/language.php");
|
||||
require_once("$incpath/functions.inc.php");
|
||||
if (extension_loaded('Phar') && ( version_compare(PHP_VERSION, '7.0.0') < 0)) {
|
||||
require_once("$incpath/lib/random_compat.phar");
|
||||
}
|
||||
|
||||
if (defined('POSTFIXADMIN_CLI')) {
|
||||
$language = 'en'; # TODO: make configurable or autodetect from locale settings
|
||||
|
@ -834,10 +834,6 @@ function encode_header($string, $default_charset = "utf-8") {
|
||||
}
|
||||
|
||||
|
||||
if (!function_exists('random_int')) { // PHP version < 7.0
|
||||
require_once(dirname(__FILE__) . '/lib/block_random_int.php');
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Generate a random password of $length characters.
|
||||
|
@ -1,17 +0,0 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* This file should only be loaded if you're :
|
||||
* a. running PHP < 7.0, and
|
||||
* b. have the php_crypt password hash configured, and
|
||||
* c. have not loaded paragonie's random_compat library.
|
||||
*
|
||||
*/
|
||||
|
||||
if(function_exists('random_int')) {
|
||||
return;
|
||||
}
|
||||
|
||||
function random_int($a, $b) { // someone might not be using php_crypt or ask for password generation, in which case random_int() won't be called
|
||||
die(__FILE__ . " Postfixadmin security: Please install https://github.com/paragonie/random_compat OR enable the 'Phar' extension.");
|
||||
}
|
@ -1,5 +0,0 @@
|
||||
-----BEGIN PUBLIC KEY-----
|
||||
MHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEEd+wCqJDrx5B4OldM0dQE0ZMX+lx1ZWm
|
||||
pui0SUqD4G29L3NGsz9UhJ/0HjBdbnkhIK5xviT0X5vtjacF6ajgcCArbTB+ds+p
|
||||
+h7Q084NuSuIpNb6YPfoUFgC/CL9kAoc
|
||||
-----END PUBLIC KEY-----
|
@ -1,4 +0,0 @@
|
||||
Downloaded on 2018/04/29.
|
||||
|
||||
https://github.com/paragonie/random_compat/releases/download/v2.0.12/random_compat.phar.pubkey
|
||||
https://github.com/paragonie/random_compat/releases/download/v2.0.12/random_compat.phar
|
Loading…
Reference in New Issue
Block a user