> I've got a page set up for CFERROR TYPE="request" that
> displays an online form, asking the user to enter briefly what
> happened and submit the form.
>
> Several error variables are included as hidden form fields,
> including error.Diagnostics. I've noticed that error.Diagnostics
> often has apostrophes and quotation marks in it.
>
> Therefore, if you have VALUE="#error.Diagnostics#" or
> VALUE='#error.Diagnostics#' as a hidden field, the values can
> get truncated when the browser finds a matching " or '. Also,
> what's been chopped off can be displayed in the browser.
You can use a TEXTAREA instead of a hidden form field for Error.Diagnostics.
While I understand that you'd prefer to use a hidden form field, you can
make the TEXTAREA very small, and potentially make it uneditable by the user
as well.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/
voice: (202) 797-5496
fax: (202) 797-5444
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists