mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
FIX: print raw html of logo image to skip unwanted html encoding (#11805)
Currently, the image logo is broken since the image tag is rendering incorrectly.
This commit is contained in:
parent
314e7be2b1
commit
039b4111e3
@ -46,7 +46,7 @@
|
||||
<text x="<%= @width / 2 %>" y="270" text-anchor="middle" fill="#020403" font-family="'Tangerine'" font-size="34.8841px">
|
||||
<%= @name %>
|
||||
</text>
|
||||
<%= @logo_group %>
|
||||
<%== @logo_group %>
|
||||
|
||||
<g>
|
||||
<g fill="#8CC63F">
|
||||
|
Before Width: | Height: | Size: 729 KiB After Width: | Height: | Size: 729 KiB |
@ -457,7 +457,7 @@
|
||||
<text x="<%= @width / 2 %>" y="240.94" text-anchor="middle" font-size="24" fill="#020403" font-family="Tangerine, Tangerine">
|
||||
<%= @name %>
|
||||
</text>
|
||||
<%= @logo_group %>
|
||||
<%== @logo_group %>
|
||||
</g>
|
||||
<g id="Layer_1-2" data-name="Layer 1">
|
||||
<path d="M339.328 47.187c-.034 1.193 3.25 2.2 6.51 3.383 5.5 1.994 13.1 3.73 17.68 3.112 5.05-.55 4.982-2.217 4.054-4.8-.1-4.647.258-9.493.156-14.142l-27.128-.458c.5 4.698-1.778 8.207-1.272 12.905z" transform="translate(-.108)" fill-rule="evenodd" fill="url(#GradientFill_24)"/>
|
||||
|
Before Width: | Height: | Size: 494 KiB After Width: | Height: | Size: 494 KiB |
@ -36,6 +36,7 @@ describe "Discobot Certificate" do
|
||||
get '/discobot/certificate.svg', params: params
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
expect(response.body).to include('<image height="55px" width="55px" />')
|
||||
end
|
||||
|
||||
describe 'when params are missing' do
|
||||
|
Loading…
Reference in New Issue
Block a user