diff --git a/VERSION b/VERSION index c946ee6..7a9a049 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.1.6 +0.1.6.1 diff --git a/lib/mail_style/inline_styles.rb b/lib/mail_style/inline_styles.rb index f45ded5..ef83241 100644 --- a/lib/mail_style/inline_styles.rb +++ b/lib/mail_style/inline_styles.rb @@ -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 @@ -208,4 +212,4 @@ def self.included(receiver) end end -ActionMailer::Base.send :include, MailStyle::InlineStyles \ No newline at end of file +ActionMailer::Base.send :include, MailStyle::InlineStyles