summaryrefslogtreecommitdiffstats
path: root/perl-install/standalone/interactive_http/interactive_http.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'perl-install/standalone/interactive_http/interactive_http.cgi')
-rwxr-xr-xperl-install/standalone/interactive_http/interactive_http.cgi3
1 files changed, 3 insertions, 0 deletions
diff --git a/perl-install/standalone/interactive_http/interactive_http.cgi b/perl-install/standalone/interactive_http/interactive_http.cgi
index cb184300a..48dd06fb8 100755
--- a/perl-install/standalone/interactive_http/interactive_http.cgi
+++ b/perl-install/standalone/interactive_http/interactive_http.cgi
@@ -62,6 +62,9 @@ sub force_exit_dead_prog {
sub spawn_server {
my ($prog) = @_;
+ my @authorised_progs = map { chomp($_) } cat_('/etc/drakxtools_http/authorised_progs');
+ member($prog, @authorised_progs) or error("You tried to call a non-authorised program");
+
fork and return;
$ENV{INTERACTIVE_HTTP} = $script_name;