| line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
|
1
|
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
### |
|
3
|
|
|
|
|
|
|
# AxKit::Plugin::DisableXSLTParams - Disable XSLT Params |
|
4
|
|
|
|
|
|
|
# Robin Berjon |
|
5
|
|
|
|
|
|
|
# 26/11/2001 - v0.01 |
|
6
|
|
|
|
|
|
|
### |
|
7
|
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
package AxKit::Plugin::DisableXSLTParams; |
|
9
|
1
|
|
|
1
|
|
747
|
use strict; |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
38
|
|
|
10
|
1
|
|
|
1
|
|
4
|
use vars qw($VERSION); |
|
|
1
|
|
|
|
|
2
|
|
|
|
1
|
|
|
|
|
109
|
|
|
11
|
|
|
|
|
|
|
$VERSION = '0.01'; |
|
12
|
|
|
|
|
|
|
# require 'AxKit', 1.5; |
|
13
|
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
#-------------------------------------------------------------------# |
|
15
|
|
|
|
|
|
|
# handler |
|
16
|
|
|
|
|
|
|
#-------------------------------------------------------------------# |
|
17
|
|
|
|
|
|
|
sub handler { |
|
18
|
0
|
|
|
0
|
0
|
|
my $r = shift; |
|
19
|
0
|
|
|
|
|
|
$r->notes('disable_xslt_params', 1); |
|
20
|
|
|
|
|
|
|
} |
|
21
|
|
|
|
|
|
|
#-------------------------------------------------------------------# |
|
22
|
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
|
25
|
|
|
|
|
|
|
#,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,# |
|
26
|
|
|
|
|
|
|
#`,`, Documentation `,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,`,# |
|
27
|
|
|
|
|
|
|
#```````````````````````````````````````````````````````````````````# |
|
28
|
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
=pod |
|
30
|
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
=head1 NAME |
|
32
|
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
AxKit::Plugin::DisableXSLTParams - Disable XSLT Params |
|
34
|
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
=head1 SYNOPSIS |
|
36
|
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
# in your Apache conf |
|
38
|
|
|
|
|
|
|
AxAddPlugin AxKit::Plugin::DisableXSLTParams |
|
39
|
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=head1 DESCRIPTION |
|
41
|
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
Under normal circumstances, CGI params are passed on top the XSLT |
|
43
|
|
|
|
|
|
|
processor. While this can be wanted, it can also have undesirable |
|
44
|
|
|
|
|
|
|
effects. Some of those may match variable or other param names that |
|
45
|
|
|
|
|
|
|
you use in your XSLT stylesheet, and having them forced upon you |
|
46
|
|
|
|
|
|
|
by CGI params can lead to hard to locate bugs. |
|
47
|
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
All you need to do to make them go away is to add this module to |
|
49
|
|
|
|
|
|
|
your conf. |
|
50
|
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
The patch that allows this module to work should have been in |
|
52
|
|
|
|
|
|
|
AxKit 1.5 but unfortunately it somehow slipped. Currently you'll |
|
53
|
|
|
|
|
|
|
need the CVS version of AxKit (see http://axkit.org/ for details on |
|
54
|
|
|
|
|
|
|
how to get it) or wait until 1.5.1 or 1.6. |
|
55
|
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
=head1 AUTHOR |
|
57
|
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
Robin Berjon, robin@knowscape.com |
|
59
|
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
=head1 COPYRIGHT |
|
61
|
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
Copyright (c) 2001,2002 Robin Berjon. All rights reserved. This program is |
|
63
|
|
|
|
|
|
|
free software; you can redistribute it and/or modify it under the same |
|
64
|
|
|
|
|
|
|
terms as Perl itself. |
|
65
|
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
=head1 SEE ALSO |
|
67
|
|
|
|
|
|
|
|
|
68
|
|
|
|
|
|
|
AxKit |
|
69
|
|
|
|
|
|
|
|
|
70
|
|
|
|
|
|
|
=cut |
|
71
|
|
|
|
|
|
|
|