Skip to content

Commit

Permalink
fix showing error when using key without username
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Apr 22, 2024
1 parent 8633c3a commit 5624a20
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/Thruk/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ sub new {
$env->{'REQUEST_URI_ORIG'} = $env->{'REQUEST_URI'} || $env->{'PATH_INFO'};
if($env->{'PATH_TRANSLATED'} && $env->{'PATH_TRANSLATED'} =~ m%(/[^/]+/cgi\-bin/error\.cgi)%mx) {
$env->{'REQUEST_URI'} = $1;
$env->{'SCRIPT_URL'} = $1;
}
# get path from script url if possible, request uri gets encoding wrong: /Disk%20%252F/ vs. /Disk %2F/ for "Disk /" url part
my $path_info = translate_request_path($env->{'SCRIPT_URL'} || $env->{'REQUEST_URI'} || $env->{'PATH_INFO'}, $config, $env);
Expand Down

0 comments on commit 5624a20

Please sign in to comment.