Skip to content

Instantly share code, notes, and snippets.

@JamoCA
Created September 9, 2013 18:09
Show Gist options
  • Save JamoCA/6499331 to your computer and use it in GitHub Desktop.
Save JamoCA/6499331 to your computer and use it in GitHub Desktop.
This ColdFusion sample attempts to identify what happens if a space is added to the name parameter of the CFPARAM function. Try this code at CFLive.net. Railo provides consistent/expected output, but the Adobe ColdFusion results vary.
<cfparam name=" test " default="xyz">
<cfparam name="test " default="123">
<cfparam name="test" default="abc">
<cfparam name="test2" default="abc">
<cfparam name="test2 " default="123">
<cfparam name=" test2 " default="xyz">
<h2>test</h2>
<p>expecting "abc"?</p>
<cfdump var="#test#">
<h2>test2</h2>
<p>expecting "abc"?</p>
<cfdump var="#test2#">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment