[ic] override always secure

Kevin Walsh interchange-users@interchange.redhat.com
Sun Apr 28 08:58:00 2002


> 
> I have in catalog config, set "process" to always secure.
> 
> How than can I override this to not be secure?
> 
> [set searchmode]
> mv_todo=return
> mv_nextpage=@@MV_PAGE@@
> [set smode]adv[/set]
> [/set]
> 
> <a href="[area form="mv_click=searchmode"]">switch to advanced mode</a>
> 
> I have tried all sorts of secure="0", but nothing. I have searched the docs,
> and have found other suggestions on doing somthing similar, but none seem to
> work for this app.
> 
Once AlwaysSecure is set, it cannot be easily overridden using
IC tags alone.  Parameters like secure="0" will not work, as you
have found.

Try the following:

    [calc]
        my $process = delete $Config->{AlwaysSecure}{process};
        my $href = $Tag->area({form => 'mv_click=searchmode'});
        $Config->{AlwaysSecure}{process} = $process;
        return qq{<a href="$href">switch to advanced mode</a>};
    [/calc]

That should remove "process" from the AlwaysSecure hash, create
a URL, set "process" to its original setting and then return a
generated HTML link to your page.

In theory. :-)

-- 
   _/   _/  _/_/_/_/  _/    _/  _/_/_/  _/    _/
  _/_/_/   _/_/      _/    _/    _/    _/_/  _/   K e v i n   W a l s h
 _/ _/    _/          _/ _/     _/    _/  _/_/    kevin@cursor.biz
_/   _/  _/_/_/_/      _/    _/_/_/  _/    _/