Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
Merge pull request #37 from edbmnt/fix36
Browse files Browse the repository at this point in the history
Avoid newline in cookie filename (fixes #36)
  • Loading branch information
scrat14 committed Feb 7, 2015
2 parents e2acd73 + e538b7a commit c803af5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin-dir/check_rhev3.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ sub rhev_connect{
my $rr = HTTP::Request->new(GET => $rhevm_url);

# cookie authentication or basic auth
my $cf = `echo "$o_rhevm_host-$rhevm_user" | base64`;
my $cf = `echo "$o_rhevm_host-$rhevm_user" | base64 -w0`;
chomp $cf;
print "[V] REST-API: cookie filename: $cf\n" if $o_verbose >= 2;
print "[D] rhev_connect: Trying cookie authentication.\n" if $o_verbose == 3;
Expand Down

0 comments on commit c803af5

Please sign in to comment.