Just don't do what I saw someone do:
Pseudo-code for index.cfm
<cfif isDefined("url.load")>
<cfinclude template="#url.load#">
<cfelse>
<a href="index.cfm?load=foo.cfm">foo</a><br>
<a href="index.cfm?load=goo.cfm">goo</a><br>
</cfif>
So, when I saw links pointing back to the page with filenames in the
URL, I.. um, someone I knew, naturally wondered what would happen if
?load=goo.cfm was changed to ?load=index.cfm.
Take a wild guess what happaned.
========================================================================
===
Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
(www.mindseye.com)
Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
Email : [EMAIL PROTECTED]
Blog : www.camdenfamily.com/morpheus/blog
Yahoo IM : morpheus
"My ally is the Force, and a powerful ally it is." - Yoda
> -----Original Message-----
> From: Ian Skinner [mailto:[EMAIL PROTECTED]
> Sent: Thursday, July 10, 2003 8:28 AM
> To: CF-Talk
> Subject: Recursive <cfinclude>
>
>
> A fun way to tie up a server.
>
> I just accidentally found out that you can recursively use
> <cfinclude>. That if you have a template named foobar.cfm and
> it contains a line <cfinclude template="foobar.cfm"> that
> ColdFusion MX will create an endless loop of including the
> file over and over and over ... When I finally stopped the
> process with the Stop button in IE, it was an very
> interesting effect with the template I just happened to be using.
>
> Is this a bug or a feature? If it's not a bug, I might have
> to think on this and see if there isn't a useful way to use
> this effect.
>
> If not, at least it's a fun way to kill a development server.
>
> --------------
> Ian Skinner
> Web Programmer
> BloodSource
> Sacramento, CA
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics.
http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4