We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 317547e commit 5ca37eaCopy full SHA for 5ca37ea
railties/lib/rails/commands/credentials/credentials_command.rb
@@ -1,6 +1,7 @@
1
# frozen_string_literal: true
2
3
require "pathname"
4
+require "shellwords"
5
require "active_support"
6
require "rails/command/helpers/editor"
7
require "rails/command/environment_argument"
@@ -91,7 +92,7 @@ def ensure_credentials_have_been_added
91
92
93
def change_credentials_in_system_editor
94
credentials.change do |tmp_path|
- system("#{ENV["EDITOR"]} #{tmp_path}")
95
+ system("#{ENV["EDITOR"]} #{Shellwords.escape(tmp_path)}")
96
end
97
98
0 commit comments