Skip to content

Commit

Permalink
oauth: improve error message
Browse files Browse the repository at this point in the history
  • Loading branch information
sni committed Mar 22, 2024
1 parent 33ed972 commit d498fcb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Thruk/Utils/OAuth.pm
Original file line number Diff line number Diff line change
Expand Up @@ -164,9 +164,9 @@ sub _send_error {
my $descr = $data->{'error_description'} // "";
if($data->{'error_uri'}) {
$descr .= "<br>" if $descr;
$descr .= "<a href='".$data->{'error_uri'}."'>".$data->{'error_uri'}."</a>";
$descr .= sprintf('<a class="link" target="_blank" href="%s"><i class="uil uil-external-link-alt text-sm"></i>%s</a>', $data->{'error_uri'}, $data->{'error_uri'});
}
return $c->detach_error({msg => $data->{'error'}, descr => $descr, code => 500});
return $c->detach_error({msg => $data->{'error'}, descr => $descr, code => 500, skip_escape => 1});
}

##########################################################
Expand Down

0 comments on commit d498fcb

Please sign in to comment.