CSP includes and query string variables...

21 views
Skip to first unread message

Micky Hulse

unread,
Jul 28, 2011, 7:40:25 PM7/28/11
to intersystems. public. cache
Here's some example code:

<https://gist.github.com/1112815>

Questions:

1.

What are your thoughts about csp:include querystring variables
polluting the "global" namespace?

Do you find this type of functionality useful or annoying?

What's the reasoning behind this functionality?

2.

What's the best way to kill the querystring variables within the
included test1.inc.csp file?

I dunno why, but for some reason I would prefer the querystring to
only be a local variable to test1.inc.csp, and not globally accessible
via additional #($get(%request.Data("var", 1)))# calls.

I have not looked, but I wonder if the docs warn people of this behavior?

Thanks for listening!

Cheers,
Micky

--
Micky Hulse
Web Content Editor
The Register-Guard
3500 Chad Drive
Eugene, OR 97408
Phone: (541) 338-2621
Fax: (541) 683-7631
Web: <http://www.registerguard.com>

Reply all
Reply to author
Forward
Message has been deleted
0 new messages