mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FIX: Respect protocol relative URLs in email styling
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user