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
<cfscript> | |
test | |
testing | |
</cfscript> |
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
<cfoutput> | |
<cfif 1 LT 1> yes <cfelse> no</cfif> | |
</cfputout> |
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
<cfscript> | |
socialLinkTypes = ['facebook','twitter','linkedin','website']; | |
linkedIn = "bll.slsl----"; | |
record = {}; | |
record["linkedIn"] = linkedIn; | |
writeDump(record); | |
</cfscript> |
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
<cfscript> | |
socialLinkTypes = ['facebook','twitter','linkedin','website']; | |
linkedIn = "bll.slsl----"; | |
test = "banana"; | |
record = {}; | |
record["linkedIn"] = linkedIn; | |
writeDump(record); | |
</cfscript> |
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 variables.regex = '[A-Za-z]+'> | |
<cfset URL.view = "displayNewsletterPopup"> | |
<cfset ok = reFind(variables.regex, URL.view, 1,true)> | |
<cfdump var="#ok#" label="good"> | |
<cfset URL.view = "displayNewsletterPopup../../../../../../../../../../tmp/writetest35985909.txt"> | |
<cfset ok = reFind(variables.regex,URL.view,1,true)> | |
<cfdump var="#ok#" label="bad"> |
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 variables.regex = '[^([:alnum:]_)-]'> | |
<cfset URL.view = "displayNewsletterPopup"> | |
<cfset ok = reFind(variables.regex, URL.view)> | |
<cfdump var="#ok#" label="good [#URL.view#]"> | |
<cfset URL.view = "display_Newsletter_Popup"> | |
<cfset ok = reFind(variables.regex, URL.view)> | |
<cfdump var="#ok#" label="good [#URL.view#]"> |
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 variables.regex = '[^([:alnum:]_)-]'> | |
<cfset URL.view = "displayNewsletterPopup"> | |
<cfset ok = reFind(variables.regex, URL.view)> | |
<cfdump var="#ok#" label="good [#URL.view#]"> | |
<cfset URL.view = "display_Newsletter_Popup"> | |
<cfset ok = reFind(variables.regex, URL.view)> | |
<cfdump var="#ok#" label="good [#URL.view#]"> |
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
<cfscript> | |
stTest = structNew(); | |
stTest['test_root_val'] = 1; | |
stTest['EC'] = structNew(); | |
stTest['EC'].bCreateBeanFile = true; | |
stTest['EC'].bCreateColdSpringFile = true; | |
stTest['EC'].sConfigBeanObjPath = 'models.GlobalConfig'; | |
stTest['EC'].sColdSpringDefFilePath = '/config/GlobalConfigColdspring.xml.cfm'; | |
stTest['EC'].sECDefinitionFilePath = '/config/environment.xml.cfm'; | |
stTest['EC'].sub = structNew(); |
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
<cfscript> | |
stTest = structNew(); | |
stTest['test_root_val'] = 1; | |
stTest['EC'] = structNew(); | |
stTest['EC'].bCreateBeanFile = true; | |
stTest['EC'].bCreateColdSpringFile = true; | |
stTest['EC'].sConfigBeanObjPath = 'models.GlobalConfig'; | |
stTest['EC'].sColdSpringDefFilePath = '/config/GlobalConfigColdspring.xml.cfm'; | |
stTest['EC'].sECDefinitionFilePath = '/config/environment.xml.cfm'; | |
stTest['EC'].sub = structNew(); |
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 d1 = "10 2018"> | |
<cfset d2 = "2018 10"> | |
<cfoutput> | |
#dateFormat(d1)#<br /> | |
#dateFormat(d2)#<br /> | |
</cfoutput> |