Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
Do not return the password from Net::DAV#credentials.
Browse files Browse the repository at this point in the history
  • Loading branch information
Lennaert Meijvogel committed Apr 14, 2012
1 parent 420e4c9 commit 23a61c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/net/dav.rb
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,10 @@ def start(&block) # :yield: dav
def credentials(user, pass)
@handler.user = user
@handler.pass = pass

# Return something explicitly since this command might be run in a
# console where the last statement would be printed.
nil
end

# Set extra headers for the dav request
Expand Down

0 comments on commit 23a61c6

Please sign in to comment.