Tags:
create new tag
, view all tags

Question

Dear community,

I read through the CGI scripts documentation and noticed that passing 'anyname=somevalue' in URLs is explicitly allowed for edit.pl HTTP requests, but is not mentioned to be allowed for view.pl.

I tested this with view.pl and noticed that any parameter that I passed in was nicely replaced (using %URLPARAM{"anyname"}%) in the topic.

Is this a bug or by design (I really hope it is by design!)

If it's by design, would it be possible to add this to the documentation.

This lets me pre-fill topic form fields with data, in my case, on a URL unblocking request form that is presented to my users whenever they try to visit a blocked URL.

Environment

TWiki version: TWikiRelease04x02x02
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin
Server OS: W2K SP4
Web server: Apache2
Perl version: AS 5.8.8
Client OS: WinXP
Web Browser: IE6, IE7, FF3.01
Categories: Documentation

-- PatrickDalinghoff - 25 Sep 2008

Answer

ALERT! If you answer a question - or have a question you asked answered by someone - please remember to edit the page and set the status to answered. The status is in a drop-down list below the edit box.

I would have hoped that the docco for VarURLPARAM would suggest that it was for all scripts (as is intended)

-- SvenDowideit - 25 Sep 2008

Seems to be answered.

-- SeanCMorgan - 27 Sep 2008

 
Change status to:
Topic revision: r3 - 2008-09-27 - SeanCMorgan
 
Twitter Delicious Facebook Digg Google Bookmarks E-mail LinkedIn Reddit StumbleUpon    
  • Download TWiki
TWiki logo Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2012 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.