projects
/
freeside.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
This commit was generated by cvs2svn to compensate for changes in r6255,
[freeside.git]
/
httemplate
/
config
/
config-download.cgi
diff --git
a/httemplate/config/config-download.cgi
b/httemplate/config/config-download.cgi
index
95a172a
..
6979246
100644
(file)
--- a/
httemplate/config/config-download.cgi
+++ b/
httemplate/config/config-download.cgi
@@
-5,14
+5,24
@@
%http_header('Content-Type' => 'application/x-unknown' );
%
%die "No configuration variable specified (bad URL)!" # umm
%http_header('Content-Type' => 'application/x-unknown' );
%
%die "No configuration variable specified (bad URL)!" # umm
-% unless $cgi->keywords;
-%my($query) = $cgi->keywords;
-%$query =~ /^([\w -\)+-\/@;:?=[\]]+)$/;
+% unless $cgi->param('key');
+%$cgi->param('key') =~ /^([-\w.]+)$/;
%my $name = $1;
%
%my $name = $1;
%
+%my $agentnum;
+%if ($cgi->param('agentnum') =~ /^(\d+)$/) {
+% $agentnum = $1;
+%}
+%
%http_header('Content-Disposition' => "attachment; filename=$name" );
%http_header('Content-Disposition' => "attachment; filename=$name" );
-% print $conf->config_binary($name);
+% print $conf->config_binary($name
, $agentnum
);
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
<%init>
die "access denied"
unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $agentnum;
+if ($cgi->param('agentnum') =~ /^(\d+)$/) {
+ $agentnum = $1;
+}
+
</%init>
</%init>