Ticket #1486088 (closed Bugs: fixed)
Password Plugin: %d inserts username instead of domain
| Reported by: | Tommy | Owned by: | |
|---|---|---|---|
| Priority: | 7 | Milestone: | 0.3.1 |
| Component: | Plugins | Version: | 0.3-stable |
| Severity: | minor | Keywords: | password plugin sql |
| Cc: | joedeking@… |
Description
Hello!
I found a little error in the sql-Driver of the password Plugin.
When configuring the password_query the %d inserts also the Username instead of the Domain. (-> Wrong Index for the $user_info Array used)
Solution:
84c84
< $sql = str_replace('%d', $db->quote($user_info[0], 'text'), $sql);
---
> $sql = str_replace('%d', $db->quote($user_info[1], 'text'), $sql);
(/drivers/sql.php)
Change History
Note: See
TracTickets for help on using
tickets.
