A platform for community discussion. Free, open, simple.
FIX: don't break the private key when writing it out during theme import
Michael Brown74acbad50580
diff --git a/lib/theme_store/git_importer.rb b/lib/theme_store/git_importer.rbindex 0fccf3886c4..c73d44f8070 100644--- a/lib/theme_store/git_importer.rb+++ b/lib/theme_store/git_importer.rb@@ -107,7 +107,7 @@ class ThemeStore::GitImporterssh_folder = "#{Pathname.new(Dir.tmpdir).realpath}/discourse_theme_ssh_#{SecureRandom.hex}"FileUtils.mkdir_p ssh_folder- File.write("#{ssh_folder}/id_rsa", @private_key.strip)+ File.write("#{ssh_folder}/id_rsa", @private_key)FileUtils.chmod(0600, "#{ssh_folder}/id_rsa")begin