From 06deeea14e1ecd4065fe5930ff1c22a07142a84c Mon Sep 17 00:00:00 2001 From: Usman Nasir Date: Thu, 13 Aug 2020 11:25:19 +0500 Subject: [PATCH] bug fix: blowfish secret --- plogical/upgrade.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plogical/upgrade.py b/plogical/upgrade.py index 2cef13d1c..a9b22b221 100755 --- a/plogical/upgrade.py +++ b/plogical/upgrade.py @@ -242,11 +242,11 @@ $cfg['Servers'][$i]['LogoutURL'] = 'phpmyadminsignin.php?logout'; if items.find('blowfish_secret') > -1: writeToFile.writelines( "$cfg['blowfish_secret'] = '" + rString + "'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */\n") - if items.find('/* Authentication type */') > -1: + elif items.find('/* Authentication type */') > -1: writeToFile.writelines(items) writeToFile.write(phpMyAdminContent) writeE = 0 - if items.find("$cfg['Servers'][$i]['AllowNoPassword']") > -1: + elif items.find("$cfg['Servers'][$i]['AllowNoPassword']") > -1: writeE = 1 else: if writeE: