Totally Zenned
- Join Date:
- Apr 2007
- Location:
- Vancouver, Canada
- Posts:
- 1,571
- Plugin Contributions:
- 60
[Fixed v1.5.1] HTML Entities Converted Incorrectly in Configuration Fields
If you save a configuration value with double quotes, it will store it in the database as ". If you then go to edit it, you'll see " in the field. When you save it again, it'll be stored as ". Continuing this process will creat " " and so on.
The fix I've used is to change lines 178 to 182 to the following:
if ($cInfo->set_function) {
eval('$value_field = ' . $cInfo->set_function . '"' . addslashes(html_entity_decode($cInfo->configuration_value)) . '");');
} else {
$value_field = zen_draw_input_field('configuration_value', addslashes(html_entity_decode($cInfo->configuration_value)), 'size="60"');
}