Modified:
development/4.0/textpattern/include/txp_admin.php
Log:
consistent use of LOWER() in SQL for updating a user password (thanks Steve)
Modified: development/4.0/textpattern/include/txp_admin.php
==============================================================================
--- development/4.0/textpattern/include/txp_admin.php (original)
+++ development/4.0/textpattern/include/txp_admin.php Thu Sep 18 14:40:02
2008
@@ -494,7 +494,7 @@
{
$passwd = generate_password(6);
- if (safe_update('txp_users', "pass =
password('".doSlash($passwd)."')", "name = '".doSlash($name)."'"));
+ if (safe_update('txp_users', "pass =
password(lower('".doSlash($passwd)."'))", "name = '".doSlash($name)."'"));
{
$email = safe_field('email', 'txp_users', "name
= '".doSlash($name)."'");