From 069aea5989ec7fe4090cf3f1151f99476fa038be Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 13 Aug 2018 15:59:24 +0300 Subject: remove FEED_CRYPT_KEY and everything related to it always assume auth_pass_encrypted is false --- update.php | 33 --------------------------------- 1 file changed, 33 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 553175c8c..2abb756ba 100755 --- a/update.php +++ b/update.php @@ -417,39 +417,6 @@ exit($rc); } - if (isset($options["decrypt-feeds"])) { - - if (!function_exists("mcrypt_decrypt")) { - _debug("mcrypt functions not available."); - return; - } - - $res = $pdo->query("SELECT id, auth_pass FROM ttrss_feeds WHERE auth_pass_encrypted = true"); - - require_once "crypt.php"; - - $total = 0; - - $pdo->beginTransaction(); - - $usth = $pdo->prepare("UPDATE ttrss_feeds SET auth_pass_encrypted = false, auth_pass = ? - WHERE id = ?"); - - while ($line = $res->fetch()) { - _debug("processing feed id " . $line["id"]); - - $auth_pass = decrypt_string($line["auth_pass"]); - - $usth->execute([$auth_pass, $line['id']]); - - ++$total; - } - - $pdo->commit(); - - _debug("$total feeds processed."); - } - PluginHost::getInstance()->run_commands($options); if (file_exists(LOCK_DIRECTORY . "/$lock_filename")) -- cgit v1.2.3-54-g00ecf