Fixed: crypting blank passwords raises an error (#9137).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7985 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -23,7 +23,7 @@ module Redmine
|
||||
|
||||
class << self
|
||||
def encrypt_text(text)
|
||||
if cipher_key.blank?
|
||||
if cipher_key.blank? || text.blank?
|
||||
text
|
||||
else
|
||||
c = OpenSSL::Cipher::Cipher.new("aes-256-cbc")
|
||||
|
||||
Reference in New Issue
Block a user