Permalink
Browse files

fix regex to filter out comment lines in authorized_keys file

  • Loading branch information...
1 parent 10a388a commit 83f1c3f3575763fe76c90f18041f76560fb55df2 @databus23 databus23 committed Aug 22, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/ssh/key/verifier.rb
View
@@ -200,7 +200,7 @@ def authorized_keys
@logger.info("AuthorizedKeysFile ==> #{authorized_keys_file}")
File.new(authorized_keys_file).each do |line|
next if line =~ /^\s*$/ # Skip blanks
- next if line =~ /^\s*\#$/ # Skip comments
+ next if line =~ /^\s*\#/ # Skip comments
@logger.info line
comment = nil

0 comments on commit 83f1c3f

Please sign in to comment.