From 7af8744c856545f62a2f24fd1a700f40b90b8e37 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 11 Feb 2021 09:57:57 +0300 Subject: authentication: make logins case-insensitive (force lowercase) --- update.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'update.php') diff --git a/update.php b/update.php index d8c648e69..0bf8f499f 100755 --- a/update.php +++ b/update.php @@ -502,7 +502,7 @@ Debug::log("Exporting feeds of user $user to $filename as OPML..."); - $sth = $pdo->prepare("SELECT id FROM ttrss_users WHERE login = ?"); + $sth = $pdo->prepare("SELECT id FROM ttrss_users WHERE LOWER(login) = LOWER(?)"); $sth->execute([$user]); if ($res = $sth->fetch()) { -- cgit v1.2.3