FreeBSD Bugzilla – Attachment 99582 Details for
Bug 138687
[PATCH] mail/roundcube: fix broken password plugin's parsing of email usernames
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 929 bytes, created by
Sahil Tandon
on 2009-09-10 04:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Sahil Tandon
Created:
2009-09-10 04:50:01 UTC
Size:
929 bytes
patch
obsolete
>Index: files/patch-plugins_password_drivers_sql.php >=================================================================== >RCS file: files/patch-plugins_password_drivers_sql.php >diff -N files/patch-plugins_password_drivers_sql.php >--- /dev/null 1 Jan 1970 00:00:00 -0000 >+++ files/patch-plugins_password_drivers_sql.php 10 Sep 2009 03:30:02 -0000 >@@ -0,0 +1,11 @@ >+--- plugins/password/drivers/sql.php.orig 2009-09-09 23:22:07.000000000 -0400 >++++ plugins/password/drivers/sql.php 2009-09-09 23:21:30.733707000 -0400 >+@@ -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);
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 138687
: 99582