summaryrefslogtreecommitdiff
path: root/update.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2021-02-11 09:57:57 +0300
committerAndrew Dolgov <[email protected]>2021-02-11 09:57:57 +0300
commit7af8744c856545f62a2f24fd1a700f40b90b8e37 (patch)
treeb030aab53c9b9bbf42ef90d7a8d51363d22670f1 /update.php
parente7e73193feaef2d74ec2a7a203d2f56fdf3082fe (diff)
authentication: make logins case-insensitive (force lowercase)
Diffstat (limited to 'update.php')
-rwxr-xr-xupdate.php2
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()) {