1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

M #: escape DH app description only if defined (#2175)

(cherry picked from commit fa1d39f69d60ab99eb5d2bda51c05df4d2cf85c6)
This commit is contained in:
Christian González 2022-06-23 11:09:46 +02:00 committed by Ruben S. Montero
parent 38ac59fd98
commit 4d9fbb7349
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -112,6 +112,12 @@ class DockerHubMarket
regt = Time.new(time[0], time[1], time[2]).to_i
end
if app['description']
desc = app['description'].delete('\\"')
else
desc = ''
end
data = {
'NAME' => app['name'],
'SOURCE' => app_url(app),
@ -125,7 +131,7 @@ class DockerHubMarket
'TAGS' => '',
'REGTIME' => regt,
'SIZE' => @options[:sizemb],
'DESCRIPTION' => app['description'].delete('\\"'),
'DESCRIPTION' => desc,
'LINK' => "https://hub.docker.com/_/#{app['name']}"
}