Skip to content

Instantly share code, notes, and snippets.

@mhulse
Created July 28, 2011 23:32
Show Gist options
  • Select an option

  • Save mhulse/1112815 to your computer and use it in GitHub Desktop.

Select an option

Save mhulse/1112815 to your computer and use it in GitHub Desktop.
CSP includes and query string variables...
<csp:include page="/csp/cms/sites/web/demos/test1.inc.csp?var=foo">
#($get(%request.Data("var", 1)))#
......
Output is:
foo foo
#($get(%request.Data("var", 1)))#
The fix is to kill the %request variable:
#($get(%request.Data("var", 1)))#
do stuff with "var".
#[ kill %request.Data("var") ]#
@mhulse
Copy link
Copy Markdown
Author

mhulse commented Aug 8, 2011

@mhulse
Copy link
Copy Markdown
Author

mhulse commented Aug 8, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment