Skip to content

Commit

Permalink
Fix inbuilt command shell usage for Cloudmin
Browse files Browse the repository at this point in the history
  • Loading branch information
Ilia Rostovtsev committed Dec 28, 2017
1 parent be5eeaf commit f0e6d22
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 10 additions & 2 deletions authentic-lib.pm
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,8 @@ sub print_left_menu
my $default = get_default_target();
my @dname = [
map {
[$_->{'id'}, virtual_server::shorten_domain_name($_),
[$_->{'id'},
virtual_server::shorten_domain_name($_),
"title=\"" . virtual_server::show_domain_name($_) . "\""]
}
grep {
Expand Down Expand Up @@ -2740,7 +2741,14 @@ sub get_xhr_request
print get_tmp_var($in{'xhr-tmp_var_name'}, $in{'xhr-tmp_var_keep'});
}
} elsif ($in{'xhr-shell-pop'}) {
my $file = "$config_directory/shell/previous.$remote_user";
my $file;
if ($in{'xhr-shell-cms'} eq "1") {
my $id = $in{'xhr-shell-cmsid'};
$id =~ s/[^\p{L}\p{N}.\-\/]//g;
$file = "$config_directory/server-manager/previous/$id";
} else {
$file = "$config_directory/shell/previous.$remote_user";
}
my $index = (int($in{'xhr-shell-pop'}) - 1);
my $history = read_file_lines($file);
if (@$history[$index]) {
Expand Down
6 changes: 3 additions & 3 deletions unauthenticated/js/bundle.min.js

Large diffs are not rendered by default.

0 comments on commit f0e6d22

Please sign in to comment.