I take your point, but unless the method had remote access, the details would only be available to CF on the server anyway. If access to CF code gets compromised, then _getConfig() is the least of your worries…

 

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Teddy Payne
Sent: 20 September 2006 17:31
To: [email protected]
Subject: Re: [Reactor for CF] get mode of reactor

 

I would not want to let the world know of my CF mappings or my datasource name myself speaking or the names of tables fro  my schema.  =)

Teddy

On 9/20/06, Gareth Cole <[EMAIL PROTECTED]> wrote:

Thanks for the tip Sean.

Just out of interest, what's the logic behind the _getConfig() being a
private method? Are there security issues with making it public, or is it
just best practice?

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
> Behalf Of Sean Corfield
> Sent: 18 September 2006 21:59
> To: [email protected]
> Subject: Re: [Reactor for CF] get mode of reactor
>
> On 9/18/06, Gareth Cole < [EMAIL PROTECTED]> wrote:
> > Is it possible to programmatically determine whether reactor is in
> > production or development mode?
>
> Yes. Inside any code that extends Reactor classes, you can call
> _getConfig().getMode() which will return "development" or
> "production".
> --
> Sean A Corfield -- (904) 302-SEAN
> An Architect's View -- http://corfield.org/
>
> "If you're not annoying somebody, you're not really alive."
> -- Margaret Atwood
>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --
> Reactor for ColdFusion Mailing List
> [email protected]
> Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> -- --




-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --




--
<cf_payne />

Blog: http://cfpayne.wordpress.com/
Atlanta CFUG: http://www.acfug.org
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --


-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Reactor for ColdFusion Mailing List
[email protected]
Archives at: http://www.mail-archive.com/reactor%40doughughes.net/
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

Reply via email to