Ticket #1486088 (closed Bugs: fixed)

Opened 12 months ago

Last modified 5 months ago

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

Changed 12 months ago by alec

  • status changed from new to closed
  • resolution set to fixed
  • milestone changed from later to 0.3.1

Fixed in r2925.

Changed 5 months ago by kja67

  • cc joedeking@… added
  • status changed from closed to reopened
  • resolution fixed deleted

Changed 5 months ago by alec

  • status changed from reopened to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.