mirror of
https://github.com/webmin/webmin.git
synced 2026-02-12 10:02:06 +00:00
Added CGI args parser
This commit is contained in:
17
sshd/cgi_args.pl
Normal file
17
sshd/cgi_args.pl
Normal file
@@ -0,0 +1,17 @@
|
||||
|
||||
do 'sshd-lib.pl';
|
||||
|
||||
sub cgi_args
|
||||
{
|
||||
my ($cgi) = @_;
|
||||
if ($cgi eq 'edit_keys.cgi') {
|
||||
# Allows no args
|
||||
return undef;
|
||||
}
|
||||
elsif ($cgi eq 'edit_host.cgi') {
|
||||
# First client host
|
||||
my $hconf = &get_client_config();
|
||||
return @$hconf ? 'idx=0' : 'new=1';
|
||||
}
|
||||
return undef;
|
||||
}
|
||||
Reference in New Issue
Block a user