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
| <cfscript> | |
| plain = "adsads"; | |
| plain_bad = "%26lt; %26lt; %2526lt%253B %2526lt%253B %2526lt%253B"; | |
| dump(Canonicalize(plain,true,true)); | |
| // checking for malicious string | |
| try { | |
| dump(Canonicalize(plain_bad,true,false)); | |
| } catch (Any e) { | |
| dump(var = e, label = "exception message"); | |
| } |
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
| <cfset jsonVal = '{"ull": false, "Type": "jsonb", "Value": "{\"items\": [{\"id\": \"home\", \"url\": \"/\", \"label\": \"Home\"}, {\"id\": \"about\", \"url\": \"/about\", \"label\": \"About Us\"}, {\"id\": \"services\", \"url\": \"/services\", \"label\": \"Services\"}, {\"id\": \"blog\", \"url\": \"/blog\", \"label\": \"Blog\"}, {\"id\": \"contact\", \"url\": \"/contact\", \"label\": \"Contact\"}], \"version\": 5}"}'> | |
| <cfset deserval = deserializeJSON(jsonVal)> | |
| <cfdump var="#deserval.value#"> | |
| <cfdump var="#jsonVal#"> | |
| <cfdump var="#deserializeJSON(jsonVal)#"> |
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
| <cfscript> | |
| var cadminrole = 'courseadmin'; | |
| if (!listfindnocase(cadminrole,'courseadmin')){ | |
| writeoutput("no course admin"); | |
| } else { | |
| writeoutput("course admin"); | |
| } | |
| </cfscript> |
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
| <cfset myName="gelo"> | |
| <cfdump var="#myName#" label="Name"> |
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
| <cfscript> | |
| asd(1) | |
| function asd(a, b) { | |
| dump(arguments.b) | |
| dump(isdefined("arguments.b")) | |
| } | |
| </cfscript> |
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
| <cfset scdata.SHUSER = 1 /> | |
| <cfset scdata.DBSEC = 1 /> | |
| <cfset scdata.SQLTOOL = 1 /> | |
| <cfset jsAddon=SerializeJSON(scdata)> | |
| <cfset jsAddon=Encrypt(jsAddon,reverse("5uNf15h4dd0n" & 'GNDFW92J6IYZVIB6DLYNQ'),"CFMX_COMPAT","Hex")> | |
| <cfdump var="#jsAddone#"> |
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
| <cfdump var ="#min(10,11)#"> |
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
| <cfdump var ="#min(10,11)#"> |
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
| <cfscript> | |
| threadSize = 200; | |
| threadList = []; | |
| for( i=1; i <= threadSize; i++ ){ | |
| threadName = "thread_test_#i#_" & replace(createUUID(), "-", "", "all"); | |
| threadList.append(threadName); | |
| thread action="run" name="#threadName#" { | |
| thread.started = true; |
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
| <cfscript> | |
| dump( "hello, world" ); | |
| </cfscript> |
NewerOlder