The easiest to read solution is one line:
cfset finalDescription = fiddleWithParas(form.description) /
Of course, that function will then contain a nicely spaced easy-to-read piece
of logic, which almost certainly wont be a horrible single line of nested
replaces.
Another opportunity to expand your skill-set then. :)
As long as you're willing to learn, the basics of Linux (etc) are not actually
that hard.
~|
Want to reach the ColdFusion community with something they want? Let them
You know, the problem with doing open source development is that I'm
never sure when I'm going to get around to working on a project. So
when I released CFFM 1.20 Friday night, it was missing a few important
features but I wanted to get it out just in case I didn't actually get
around to
BTW, thanks to Sankaram Tata at Adobe for giving me the idea to use
CFFM in the RAM drive. Very few changes were required to make it
work.
--
Rick Root
New Brian Vander Ark Album, songs in the music player and cool behind
the scenes video at www.myspace.com/brianvanderark
Because of formatting bugs with cfdocument, we've had to switch to software
called WebGrabber - unlike all the other HTML-PDF generation software I've
tried, WebGrabber works in an interesting way: it renders the HTML page and
prints it to PDF - so you get what the browser/engine saw. (And
Not all injection tricks are based upon multi-statement SQL!
Example bad code:
cfset NewPassword = whatever /
cfset Username = bob' OR 1=1 -- /
cfquery ...
UPDATE users
SET pass = '#NewPassord#'
WHERE user = '#Username#'
/cfquery
Using cfqueryparam will avoid this
that actually wouldn't work because coldfusion automatically escapes
single quotes inside strings inside cfquery.
But maybe this:
cfset NewPassword = whatever /
cfset userid = 1 OR 1=1 -- /
cfquery ...
UPDATE users
SET pass = '#NewPassord#'
WHERE userid = '#Userid#'
Ooops, yes. Though you can possibly get around that with bob\' OR 1=1 --
which gets escaped to bob\'' OR 1=1 -- and so still has the problem (since
the \' is treated as a single char).
But yeah, with numeric values there's no quotes/escaping involved.
On Monday 17 Aug 2009, Rick Root wrote:
This means a couple of image manipulation features are gone since
CFIMAGE doesn't seem to have the ability to flip horizontal, flip
vertical,
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=functions_h-im_22.html
:-)
or crop an
Unless people insist on using preserveSingleQuotes(), when they've
built a SQL statement dynamically in a string which they then pass to
the cfquery tag.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/8/17 Rick Root rick.r...@webworksllc.com:
that
I am not real good with JavaScript so that may be my problem, but I have
written a page that has two seperate cfdiv's with bind. One holds a video
player and the other is the navigation.
When you click through the navigation you have to go three levels before you
select a video. When you
I am not real good with JavaScript so that may be my problem, but I have
written a page that has two separate cfdiv's with bind. One holds a video
player and the other is the navigation.
When you click through the navigation you have to go three levels before you
select a video. When you
On 18/08/2009 00:20, Michael Grove wrote:
Any suggestions would be greatly appreciated.
use Firefox+Firebug to see the real js error.
post relevant code from the page you are loading inside cfdiv (the one
that throws the error)
if you have any js in that page, make sure your functions are
Here is the code.
I am still trying to figure out firebug.
I added the ajaxonload - and now it will not load the first time but does on
all clicks after that.
Before it would load the first time but not afterwards.
cfparam name=Preview default=1
cfparam name=url.id default=0
On Mon, Aug 17, 2009 at 8:42 PM, Michael Grovegro...@idzyns.com wrote:
I am still trying to figure out firebug.
Spend more time learning firebug if you're gonig to do *ANY* ajax
development. It's really quite simple.
http://lmgtfy.com/?q=firebug+tutorial
--
Rick Root
New Brian Vander Ark
Hi there
I have 2 small CF programs and cant understand why the code is not working.
Basically what I am trying to do can be seen on the website:
This is the code from the first program gallery.cfm
CFIF IsDefined(form.submit)
cfinclude template=inc_photo_gallery.cfm
br /
br
Hello again
Not sure if I explained myself properly. Basically I there are 3 photo
galleries on the website. I want a website visitor to be able to select which
gallery to view (or they can view all the photos).
I have a drop down selection to let them select which gallery to view.
Once
Try adding an action to the form tag.
mxAjax / CFAjax docs and other useful articles:
http://www.bifrost.com.au/blog/
2009/8/18 Toby King ptansw...@gmail.com:
Hi there
I have 2 small CF programs and cant understand why the code is not working.
form name=photogallery
On Mon, Aug 17, 2009 at 7:18 PM, Toby Kingptansw...@gmail.com wrote:
Hi there
I have 2 small CF programs and cant understand why the code is not working.
Basically what I am trying to do can be seen on the website:
This is the code from the first program gallery.cfm
You had no action or
The site www.yengtanfloraldesigner.com.au is starting to look better (well the
galleries can now be selected.
Just wondering how you would recommend improving the way the galleries are
displayed - I'm thinking probably keep the drop down list available (somehow
show the selection made -
The site www.yengtanfloraldesigner.com.au is starting to look better (well the
galleries can now be selected.
Just wondering how you would recommend improving the way the galleries are
displayed - I'm thinking probably keep the drop down list available (somehow
show the selection made -
21 matches
Mail list logo