summaryrefslogtreecommitdiff
path: root/install
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2017-01-07 14:25:46 +0300
committerAndrew Dolgov <[email protected]>2017-01-07 14:25:46 +0300
commit17a8e61d2ae9e938aaf60292666b6ccf5cb09067 (patch)
treeb6ddea4e4bb7cef4bcd2c4185fc63d8b78c8cbf4 /install
parent370fe2bdcdb9042310d0d86fe10b78174a7d1cf1 (diff)
deprecate encrypted feed passwords because mcrypt is getting removed from php 7.1
1. transparent decryption for existing installs stays for the time being 2. new passwords are not going to be encrypted even if FEED_CRYPT_KEY is defined 3. added update.php --decrypt-feeds to bulk decrypt existing encrypted passwords 4. updated install to not auto-generate crypt key 5. added warning to config.php-dist
Diffstat (limited to 'install')
-rwxr-xr-xinstall/index.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/install/index.php b/install/index.php
index 00e90dfe7..16314edf6 100755
--- a/install/index.php
+++ b/install/index.php
@@ -128,12 +128,6 @@
$finished = false;
- if (function_exists("mcrypt_decrypt")) {
- $crypt_key = make_password(24);
- } else {
- $crypt_key = "";
- }
-
foreach ($data as $line) {
if (preg_match("/define\('DB_TYPE'/", $line)) {
$rv .= "\tdefine('DB_TYPE', '$DB_TYPE');\n";
@@ -149,8 +143,6 @@
$rv .= "\tdefine('DB_PORT', '$DB_PORT');\n";
} else if (preg_match("/define\('SELF_URL_PATH'/", $line)) {
$rv .= "\tdefine('SELF_URL_PATH', '$SELF_URL_PATH');\n";
- } else if (preg_match("/define\('FEED_CRYPT_KEY'/", $line)) {
- $rv .= "\tdefine('FEED_CRYPT_KEY', '$crypt_key');\n";
} else if (!$finished) {
$rv .= "$line\n";
}