Created
June 2, 2014 11:39
-
-
Save adamcameron/d680bb8dce2845223f79 to your computer and use it in GitHub Desktop.
Trying to work out what the problem Andreas is having
This file contains 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
<cfset original = "test string with a trailing ##"> | |
<cfset encoded = urlEncodedFormat(original)> | |
<cfset decoded = urlDecode(encoded)> | |
<cfdump var="#[original,encoded,decoded]#"> | |
<!--- | |
outputs: | |
array | |
1 test string with a trailing # | |
2 test%20string%20with%20a%20trailing%20%23 | |
3 test string with a trailing # | |
---> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Call a template like so: test.cfm?p=f%25%26%3F%23
test.cfm
<cfscript>
param name="url.p" default="";
writeOutput( urlDecode( url.p ) );
</cfscript>