Merge pull request #1114 from alanoliveira/main

prevent escape '#' when generating env_file string
This commit is contained in:
Donal McBreen
2024-10-23 12:35:07 +01:00
committed by GitHub
2 changed files with 13 additions and 1 deletions

View File

@@ -37,6 +37,8 @@ class Kamal::EnvFile
def escape_docker_env_file_ascii_value(value)
# Doublequotes are treated literally in docker env files
# so remove leading and trailing ones and unescape any others
value.to_s.dump[1..-2].gsub(/\\"/, "\"")
value.to_s.dump[1..-2]
.gsub(/\\"/, "\"")
.gsub(/\\#/, "#")
end
end