coldfusion

Regex Match whole word string in coldfusion

耗尽温柔 提交于 2020-05-13 05:43:07
问题 Im trying this example first example keyword = "star"; myString = "The dog sniffed at the star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"); } Example output -> found it second example keyword = "star"; myString = "The dog sniffed at the .star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"

Regex Match whole word string in coldfusion

江枫思渺然 提交于 2020-05-13 05:42:51
问题 Im trying this example first example keyword = "star"; myString = "The dog sniffed at the star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"); } Example output -> found it second example keyword = "star"; myString = "The dog sniffed at the .star fish and growled"; regEx = "\b"& keyword &"\b"; if (reFindNoCase(regEx, myString)) { writeOutput("found it"); } else { writeOutput("did not find it"

How to upload image with Jodit uploader and coldfusion?

馋奶兔 提交于 2020-04-14 07:18:08
问题 I'm using Jodit to create a wysiwyg editor. I have a coldfusion file (uploadimage2.cfm) that is empty. When I send the uploaded img to that empty coldfusion page I get an error that coldfusion can't find the variable "FILES". Jodit is sending the following form data to uploadimage2.cfm: ------WebKitFormBoundaryIrkl9oNQedwACmBe Content-Disposition: form-data; name="path" ------WebKitFormBoundaryIrkl9oNQedwACmBe Content-Disposition: form-data; name="source" default -----

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

血红的双手。 提交于 2020-04-11 17:17:16
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

点点圈 提交于 2020-04-11 17:16:45
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

In ColdFusion How to Eliminate Vulnerable for Cross-Site Script

爱⌒轻易说出口 提交于 2020-04-11 17:16:07
问题 What is the best way to stop Cross-Site Scripting for ColdFusion? Is there a setting to set in the CF Admin or is their code in you can put in Application.cfc? Example Code: http://test.com/file.cfm?center=fisCenter')" onmouseover="alert('Insert Hax Here.')" style="display:block;position:absolute;top:0;left:0;width:10000px;height:10000px;z-index:100"> 回答1: First things first: https://www.owasp.org/index.php/XSS_(Cross_Site_Scripting)_Prevention_Cheat_Sheet. OWASP has tons of resources to help

Coldfusion Multi-Select box without CFSelect

丶灬走出姿态 提交于 2020-03-26 05:17:22
问题 How would one go about building a multiselect box in Coldfusion without using CFForm or CFSelect? This is to pull values from a DB so its not just a static select box it is dynamic. This is my first time every trying to code in ColdFusion, I have always been a .Net person so this is a bit of a change for me. The reason why I am needing this is because I've gotten hired into a department at work that uses Coldfusion but from what the Lead developer told me is they do not use CFForm and seeing

Coldfusion Multi-Select box without CFSelect

我怕爱的太早我们不能终老 提交于 2020-03-26 05:16:23
问题 How would one go about building a multiselect box in Coldfusion without using CFForm or CFSelect? This is to pull values from a DB so its not just a static select box it is dynamic. This is my first time every trying to code in ColdFusion, I have always been a .Net person so this is a bit of a change for me. The reason why I am needing this is because I've gotten hired into a department at work that uses Coldfusion but from what the Lead developer told me is they do not use CFForm and seeing

Twitter API status update not working when updating to v1.1

给你一囗甜甜゛ 提交于 2020-03-25 17:53:11
问题 I have a twitter application which sends tweets automatically for uses of our blog application whenever they post a new blog item. This application is now returning an error HTTP/1.1 401 Unauthorized Content-Type: application/json; charset=utf-8 Date: Mon, 12 Nov 2012 22:05:27 UTC Server: tfe {"errors":[{"message":"Could not authenticate you","code":32}]} My coldfusion code is as follows for posting the tweet: <cfset var tweetURL = "https://api.twitter.com/1.1/statuses/update.json"> <cfhttp

Twitter API status update not working when updating to v1.1

戏子无情 提交于 2020-03-25 17:52:59
问题 I have a twitter application which sends tweets automatically for uses of our blog application whenever they post a new blog item. This application is now returning an error HTTP/1.1 401 Unauthorized Content-Type: application/json; charset=utf-8 Date: Mon, 12 Nov 2012 22:05:27 UTC Server: tfe {"errors":[{"message":"Could not authenticate you","code":32}]} My coldfusion code is as follows for posting the tweet: <cfset var tweetURL = "https://api.twitter.com/1.1/statuses/update.json"> <cfhttp