Small email fixes

This commit is contained in:
Robin Ward
2013-12-03 10:10:53 -05:00
parent bf2663346a
commit 8b4c030c16
2 changed files with 2 additions and 2 deletions

View File

@@ -28,7 +28,7 @@ module Email
end
# ensure no schemaless urls
if img['src'].starts_with?("//")
if img['src'] && img['src'].starts_with?("//")
img['src'] = "http:" + img['src']
end
end