Created
September 9, 2013 18:09
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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