Closed (fixed)
Project:
Webform
Version:
6.x-2.7
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Nov 2009 at 10:18 UTC
Updated:
21 Feb 2010 at 05:10 UTC
If I enter T&M in the textfield, then the rendered form displays & where it should be &.
It looks like it's translating the value twice ie
Values with ampersands becomes &
first pass: & becomes & (filter_xss function in _webform_filter_values)
second pass: & becomes & (check_plain for #default_value in core form api)
line: 113 in textfield.inc
'#default_value' => _webform_filter_values($component['value']),
must be like this for fix this bug:
'#default_value' => _webform_filter_values($component['value'], NULL, NULL, FALSE),
| Comment | File | Size | Author |
|---|---|---|---|
| webform.module-ampersands-textfield-bug.patch | 725 bytes | Debugger_01 |
Comments
Comment #1
quicksketchThanks, finally committed to all branches.