tracker issue : CF-4203096

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

Canonicalize: &ne becomes ? unexpectedly

| View in Tracker

Status/Resolution/Reason: To Fix//BugVerified

Reporter/Name(from Bugbase): Helen Kupeli / ()

Created: 07/19/2018

Components: Functions

Versions: 2016,11.0,13.0

Failure Type: Incorrectly functioning

Found In Build/Fixed In Build: 2016.0.06.308055 /

Priority/Frequency: Normal / Some users will encounter

Locale/System: English / Windows 10 64 bit

Vote Count: 1

Problem Description:I'm using canonicalize as one step in checking URL's before validating each URL variable.  For some reason &ne seems to always translate as ? even in situations where that is not expected nor appropriate.

Steps to Reproduce:
<cfset varURL = "" />
<cfset varCheck = Canonicalize(varURL,true,true)/>
Now look at the value of varCheck.

Actual Result: The value of varCheck will be ""

Expected Result:"" since each variable is valid.

Any Workarounds: switch the order of the variables so newVar is first.  That only will work if you only have one variable that starts with "ne".