PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Authentication » LiveUser » Bug #1638

Wrong array key in Admin/Auth/Cont../DB

Details

Submitted2004-06-14 23:24 UTC
Fromworthy at home dot olsztyn dot pl
StatusBogus
PackageLiveUser
PHP VersionIrrelevant
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2004-06-14 23:24 UTC] worthy at home dot olsztyn dot pl

Description:
------------
In file LiveUser/Admin/Auth/Container/DB.php (line 205; function addUser)
is wrong table key used. This generates error in DB Query.

Reproduce code:
---------------
$query = '
INSERT INTO
' . $this->authTable . '
(
' . $this->authTableCols['required']['user_id']['name'] . ',
' . $this->authTableCols['required']['handle']['name'] . ',
' . $this->authTableCols['required']['passwd']['name'] . '
' . $col . '
)
VALUES ...

Expected result:
----------------
$query = '
INSERT INTO
' . $this->authTable . '
(
' . $this->authTableCols['required']['auth_user_id']['name'] . ',
' . $this->authTableCols['required']['handle']['name'] . ',
' . $this->authTableCols['required']['passwd']['name'] . '
' . $col . '
)
VALUES ...