Skip to content

Commit

Permalink
Fix #212
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas committed Jun 10, 2014
1 parent 71f78ee commit 000121c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/gitolite_public_key.rb
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,9 @@ def key_uniqueness
return if !new_record?

keypieces = key.match(/^(\S+)\s+(\S+)/)

return false if keypieces.nil?

key_format = keypieces[1]
key_data = keypieces[2]

Expand Down

0 comments on commit 000121c

Please sign in to comment.