Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
fgrehm committed Apr 7, 2014
2 parents 424475a + dbe6a2f commit aa72a18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/letter_opener_web/letter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def adjust_link_targets(contents)
# "complete" (as in they have the whole <html> structure) and letter_opener
# prepends some information about the mail being sent, making REXML
# complain about it
contents.scan(/<a[^>]+>(?:.|\s)*?<\/a>/).each do |link|
contents.scan(/<a\s[^>]+>(?:.|\s)*?<\/a>/).each do |link|
fixed_link = fix_link_html(link)
xml = REXML::Document.new(fixed_link).root
unless xml.attributes['href'] =~ /(plain|rich).html/
Expand Down

0 comments on commit aa72a18

Please sign in to comment.