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

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

This commit is contained in:
Christian González 2022-06-23 11:09:46 +02:00 committed by GitHub
parent e88f3591ea
commit fa1d39f69d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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']}"
}