tracker issue : CF-4204045

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

UrlEncodedFormat Can't Encode % Symbols

| View in Tracker

Status/Resolution/Reason: To Test//Fixed

Reporter/Name(from Bugbase): Alex P. / ()

Created: 02/22/2019

Components: Functions, String

Versions: 11.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 11,0,16,313933 /

Priority/Frequency: Normal / All users will encounter

Locale/System: ALL / Win 2012 Server x64

Vote Count: 9

Problem Description:
UrlEncodedFormat() no longer escapes the % character properly.

Steps to Reproduce:
<cfset testString = "+" />
<cfoutput>#testString#</cfoutput> <br/>
<cfoutput>#UrlEncodedFormat(testString)#</cfoutput> <br/>

Actual Result:

Expected Result:

Any Workarounds:
Use Replace(haystack, "%", "%25", "all") or uninstall CF Hotfix Update 16. Expected result is returned in 11,0,15



Applies to valid escape sequences (%GH will be encoded to %25GH) and applies to builtin encoding (such as <cfhttpparam type="formfield" name="test" value="%255F" encoded="yes"/>).
Comment by Evert N.
30444 | March 06, 2019 06:14:46 PM GMT
This is a breaking issue for an app I maintain. We can't update due to this.
Comment by Bradley W.
30544 | March 20, 2019 08:41:52 PM GMT
Comment by Ricardo R.
30578 | March 28, 2019 07:23:44 AM GMT