Status/Resolution/Reason: Closed/Fixed/Fixed
Reporter/Name(from Bugbase): Alex P. / ()
Created: 02/22/2019
Components: Language, String Functions
Versions: 11.0
Failure Type: Incorrectly functioning
Found In Build/Fixed In Build: 11,0,16,313933 / CF11U19,CF2016U11,CF2018U4
Priority/Frequency: Normal / All users will encounter
Locale/System: ALL / Win 2012 Server x64
Vote Count: 11
Problem Description:
UrlEncodedFormat() no longer escapes the % character properly.
Steps to Reproduce:
<cfset testString = "+" />
<cfoutput>#testString#</cfoutput> <br/>
<cfoutput>#UrlEncodedFormat(testString)#</cfoutput> <br/>
<cfoutput>#UrlEncodedFormat(UrlEncodedFormat(testString))#</cfoutput>
Actual Result:
+
%2B
%2B
Expected Result:
+
%2B
%252B
Any Workarounds:
Use Replace(haystack, "%", "%25", "all") or uninstall CF Hotfix Update 16. Expected result is returned in 11,0,15
Attachments:
Comments: