mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 23:15:55 +00:00
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
This commit is contained in:
@@ -1749,14 +1749,7 @@
|
||||
"SELECT id FROM ttrss_feeds
|
||||
WHERE feed_url = '$url' AND owner_uid = ".$_SESSION["uid"]);
|
||||
|
||||
if (strlen(FEED_CRYPT_KEY) > 0) {
|
||||
require_once "crypt.php";
|
||||
$auth_pass = substr(encrypt_string($auth_pass), 0, 250);
|
||||
$auth_pass_encrypted = 'true';
|
||||
} else {
|
||||
$auth_pass_encrypted = 'false';
|
||||
}
|
||||
|
||||
$auth_pass_encrypted = 'false';
|
||||
$auth_pass = db_escape_string($auth_pass);
|
||||
|
||||
if (db_num_rows($result) == 0) {
|
||||
|
||||
Reference in New Issue
Block a user