Opened 4 years ago

Closed 3 years ago

#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 (3)

comment:1 Changed 4 years ago by alec

  • Milestone changed from later to 0.3.1
  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [3dd90d32].

comment:2 Changed 3 years ago by kja67

  • Cc joedeking@… added
  • Resolution fixed deleted
  • Status changed from closed to reopened

comment:3 Changed 3 years ago by alec

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