PEAR is archived and read-only

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

Home » HTML » HTML_QuickForm » Bug #4932

exportValues() should not return internal values

Details

Request #4932exportValues() should not return internal values
Submitted2005-07-27 22:08 UTC
Fromjameslee at cs dot nmt dot edu
StatusBogus
PackageHTML_QuickForm
PHP Version4.3.11
OSIrrelevant
Roadmaps(Not assigned)

Comments

[2005-07-27 22:08 UTC] jameslee at cs dot nmt dot edu

Description:
------------
The exportValues() method returns _qf_default and button names that should be internal to QuickForm. This is an issue when one can not be sure of the contents of the form (for example, when using DB_Table to abstract field names) and must loop through the array returned by exportValues.

As a possible solution, using QuickForm 3.2.4pl1 stable, change QuickForm.php line 1814 from:
$values[$elementName] = $value;
to:
if (FALSE !== strpos($elmentName,'_qf_')) {
$values[$elementName] = $value;
}