Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.1.6
0.1.6.1
8 changes: 6 additions & 2 deletions lib/mail_style/inline_styles.rb
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,11 @@ def absolutize_url(url, base_path = '')
[host,protocol].each{|r| original_url.gsub!(r,"") }
host = protocol+host unless host[URI::regexp(%w[http https])]

url = URI.join host, base_path, original_url
begin
url = URI.join host, base_path, original_url
rescue => e
url = ''
end
end

url.to_s
Expand Down Expand Up @@ -208,4 +212,4 @@ def self.included(receiver)
end
end

ActionMailer::Base.send :include, MailStyle::InlineStyles
ActionMailer::Base.send :include, MailStyle::InlineStyles