diff options
| author | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-05 06:42:36 +0000 |
|---|---|---|
| committer | alec <alec@208e9e7b-5314-0410-a742-e7e81cd9613c> | 2009-09-05 06:42:36 +0000 |
| commit | 494f69637c1dae02bbfbb36a6a1493405c579a9a (patch) | |
| tree | ebb9ec2ba3e16ebe4462f7f4ba87d61f602bcd9a /roundcubemail/plugins | |
| parent | 0766ba1e10b3c20b3868b3d03537d9ed677b6ed7 (diff) | |
- Password Plugin: Fix %d inserts username instead of domain (#1486088)
git-svn-id: https://svn.roundcube.net/trunk@2925 208e9e7b-5314-0410-a742-e7e81cd9613c
Diffstat (limited to 'roundcubemail/plugins')
| -rw-r--r-- | roundcubemail/plugins/password/drivers/sql.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roundcubemail/plugins/password/drivers/sql.php b/roundcubemail/plugins/password/drivers/sql.php index 9afaa65d8..1e737f233 100644 --- a/roundcubemail/plugins/password/drivers/sql.php +++ b/roundcubemail/plugins/password/drivers/sql.php @@ -5,7 +5,7 @@ * * Driver for passwords stored in SQL database * - * @version 1.2 + * @version 1.3 * @author Aleksander 'A.L.E.C' Machniak <alec@alec.pl> * */ @@ -81,7 +81,7 @@ function password_save($curpass, $passwd) $user_info = explode('@', $_SESSION['username']); if (count($user_info) >= 2) { $sql = str_replace('%l', $db->quote($user_info[0], 'text'), $sql); - $sql = str_replace('%d', $db->quote($user_info[0], 'text'), $sql); + $sql = str_replace('%d', $db->quote($user_info[1], 'text'), $sql); } $sql = str_replace('%u', $db->quote($_SESSION['username'],'text'), $sql); |
