GitLab ist jetzt auf dem neuesten Stand! Die jüngsten Probleme wurden behoben. Wir entschuldigen uns für die dadurch verursachten Unannehmlichkeiten.

Commit 2a9c7caa authored by maeda's avatar maeda

Decrypting LDAP and SCM passwords fail if the plaintext password is longer than 31 bytes (#30171).

Patch by Nik Il.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 0a736707
......@@ -33,7 +33,7 @@ module Redmine
c.iv = iv
e = c.update(text.to_s)
e <<
"aes-256-cbc:" + [e, iv].map {|v| Base64.encode64(v).strip}.join('--')
"aes-256-cbc:" + [e, iv].map {|v| Base64.strict_encode64(v)}.join('--')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment