mirror of
https://github.com/discourse/discourse.git
synced 2025-09-05 08:59:27 +08:00
FIX: Respect protocol relative URLs in email styling
This commit is contained in:
parent
7cfb583016
commit
b7c50ecdaa
2 changed files with 6 additions and 1 deletions
|
@ -20,7 +20,7 @@ module Email
|
|||
img['style'] = "max-width: 694px;"
|
||||
end
|
||||
|
||||
if img['src'][0] == "/"
|
||||
if img['src'] =~ /^\/[^\/]/
|
||||
img['src'] = "#{Discourse.base_url}#{img['src']}"
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue