Changeset:
        d15543350b4a
        
https://sourceforge.net/p/mrbs/hg-code/ci/d15543350b4ae8330555938aa82d05104ab7a0dc
Author:
        Campbell Morrison <[email protected]>
Date:
        Tue May 30 20:52:25 2017 +0100
Log message:

Fixed bug causing ordinary users sometimes not to be able to change their own
passwords.  See SF Support Requests #1238.

diffstat:

 web/edit_users.php |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r 84a027ad97c1 -r d15543350b4a web/edit_users.php
--- a/web/edit_users.php        Mon May 15 17:47:08 2017 +0100
+++ b/web/edit_users.php        Tue May 30 20:52:25 2017 +0100
@@ -522,7 +522,7 @@
 {
   // If you haven't got the rights to do this, then exit
   $my_id = db()->query1("SELECT id FROM $tbl_users WHERE name=? LIMIT 1",
-                        array($user));
+                        array(utf8_strtolower($user)));
   if (($level < $min_user_editing_level) && ($Id != $my_id ))
   {
     Header("Location: edit_users.php");

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits

Reply via email to