Categories:
Author:
Current version:
0.5
About It:
Get it:
Rate it:
Flag it:
chs_if_urlvar
a plugin that lets you condition parts of the page depending on GET variables transferred with the url.
the plugin has three functions. the first of which, chs_if_urlvar, lets you condition that if GET variable designsated is equal to the value designated, the enclosed text will appear (an example is in the documentation).
another one, chs_urlvar_default, will show the enclosed text only if the variable is not declared in the url, and a third one, chs_urlvar_exists, will show the enclosed text only if the variable is declared.
more info about usage is in the docs.
Initially released:
October 1st, 2005Posted here:
01 Oct 2005









Comments/questions? Leave a message in the form.
Commented (10)
http://forum.textpattern.com/viewtopic.php?pid=81059
Thanks!
This plugin seems to work in Textpattern’s versions 4.0.7 and 4.0.8 without problems. If someone needs this, I’m hosting this file over here.
this plugin opens you up to cross-site vulnerabilities.. specifically:
<txp:chs_urlvar_echo var=“foo”>
http://yoursite/?foo=<script>alert(‘bar’)</script>
OK, this is a fixed version (raw text right now):
http://chigh.org/ifurlvar_fixed.txt
Subscribe to this article's comments RSS feed. [ ? ] View Recent Comments across the site.
Would you care to write a comment?