diff options
author | ale <ale@FreeBSD.org> | 2009-09-10 16:19:29 +0800 |
---|---|---|
committer | ale <ale@FreeBSD.org> | 2009-09-10 16:19:29 +0800 |
commit | 7d998e3a4d1e83518183ed556c95bd7f50aba56e (patch) | |
tree | eaf56a117508b0ebb163e9b2d57c64e48e766dbe | |
parent | 2e42aa6c61cc79d5727bc4ad7ca5f253ff13cdeb (diff) | |
download | freebsd-ports-gnome-7d998e3a4d1e83518183ed556c95bd7f50aba56e.tar.gz freebsd-ports-gnome-7d998e3a4d1e83518183ed556c95bd7f50aba56e.tar.zst freebsd-ports-gnome-7d998e3a4d1e83518183ed556c95bd7f50aba56e.zip |
Fix password plugin.
PR: ports/138687
Submitted by: Sahil Tandon <sahil@tandon.net>
-rw-r--r-- | mail/roundcube/files/patch-plugins_password_drivers_sql.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/roundcube/files/patch-plugins_password_drivers_sql.php b/mail/roundcube/files/patch-plugins_password_drivers_sql.php new file mode 100644 index 000000000000..6083e174c449 --- /dev/null +++ b/mail/roundcube/files/patch-plugins_password_drivers_sql.php @@ -0,0 +1,11 @@ +--- plugins/password/drivers/sql.php.orig 2009-09-10 10:17:30.000000000 +0200 ++++ plugins/password/drivers/sql.php 2009-09-10 10:18:05.000000000 +0200 +@@ -81,7 +81,7 @@ + $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); |