Ticket #1486088 (closed Bugs: fixed)

Opened 6 months ago

Last modified 6 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:

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 6 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.

Note: See TracTickets for help on using tickets.