tracker issue : CF-4205918

select a category, or use search below
(searches all categories and all time range)
Title:

sameFormFieldsAsArray incorrectly deserializes form values containing commas

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Bob G. / ()

Created: 11/15/2019

Components: Language, Application Framework, PerAppSettings

Versions: 2018

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2018,0,05,315699 / 2020.0.0.318323

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Win 2016

Vote Count: 4

Problem Description:

When multiple form fields of the same name are posted the resulting array splits the items containing commas. This is a change of behavior from CF 11 and seems to defeat the purpose of sameFormFieldsAsArray.

Steps to Reproduce:

POST stuff=foo&staff=bar,baz

Actual Result:

stuff = ["foo", "bar", "baz"]

Expected Result:

stuff = ["foo", "bar,baz"]

Any Workarounds:

Attachments:

Comments:

I entered a typo under "Steps to Reproduce:" POST stuff=foo&stuff=bar,baz
Comment by Bob G.
31841 | November 20, 2019 04:24:52 PM GMT
Not sure why this is marked as fixed. It still appears to be an issue as of ColdFusion 2018 Update 7. Adobe sent me a patch that you can copy into the \cfusion\lib\updates\ folder that will temporarily fix the issue, but that was back in December and multiple Updates have been released since that time, none of which have resolved the problem.
Comment by City A.
32037 | January 20, 2020 03:21:18 PM GMT