Home » HTML » HTML_QuickForm » Bug #496
setDefaults with callback processes special characters wrongly
Details
| Submitted | 2003-12-26 01:43 UTC |
|---|---|
| From | aidan at virtualexplorer dot com dot au |
| Status | Bogus |
| Package | HTML_QuickForm |
| PHP Version | Irrelevant |
| OS | n/a |
| Roadmaps | (Not assigned) |
Comments
[2003-12-26 01:43 UTC] aidan at virtualexplorer dot com dot au
Description:
------------
HTML_QuickForm::setDefaults with a htmlentities callback function will result in special characters being converted twice!
For example:
$form->setDefaults($result[0], 'htmlentities');
Letters such as special n (n with a tilde), or any other international characters are first converted using the callback function to their ascii names, ñ, and when outputted, again converted to &ñ
If the data is called without using a callback function, the letters are not converted at all, and causes problems in displaying the form.