aboutsummaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorAlex Dupre <ale@FreeBSD.org>2009-09-10 08:19:29 +0000
committerAlex Dupre <ale@FreeBSD.org>2009-09-10 08:19:29 +0000
commit5706a4da5edfe6f9d4869930b9e5605a97b7e24e (patch)
treefc3a423d3dc1e044824b8f180150557b308a23f0 /mail
parent93255343af2cdfaa26b06a7e3106365d4d9d4a10 (diff)
downloadports-5706a4da5edfe6f9d4869930b9e5605a97b7e24e.tar.gz
ports-5706a4da5edfe6f9d4869930b9e5605a97b7e24e.zip
Fix password plugin.
PR: ports/138687 Submitted by: Sahil Tandon <sahil@tandon.net>
Notes
Notes: svn path=/head/; revision=241147
Diffstat (limited to 'mail')
-rw-r--r--mail/roundcube/files/patch-plugins_password_drivers_sql.php11
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);