diff options
author | Andrew Dolgov <[email protected]> | 2021-02-11 09:57:57 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-11 09:57:57 +0300 |
commit | 7af8744c856545f62a2f24fd1a700f40b90b8e37 (patch) | |
tree | b030aab53c9b9bbf42ef90d7a8d51363d22670f1 /update.php | |
parent | e7e73193feaef2d74ec2a7a203d2f56fdf3082fe (diff) |
authentication: make logins case-insensitive (force lowercase)
Diffstat (limited to 'update.php')
-rwxr-xr-x | update.php | 2 |
1 files changed, 1 insertions, 1 deletions
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()) { |