Rodrigo Rosenfeld Rosas
2010-Jun-13 15:34 UTC
Rails 3, ActionMailer and urls (ampersand encoding)
In Rails 2, if I used an url in a plain text message it was sent as is, but it seems to be changed in Rails 3. The url http://ab.cd/ef?g=1&h=2 seems to be now translated to http://ab.cd/ef?g=1&h=2 even if the message is plain text. Is it correct? I''ve written my tests previously considering it should not be encoded in plain text messages and these tests are failing when I''m trying to upgrade my application to Rails 3... Thanks in advance, Rodrigo. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Michael Koziarski
2010-Jun-13 22:47 UTC
Re: Rails 3, ActionMailer and urls (ampersand encoding)
> In Rails 2, if I used an url in a plain text message it was sent as is, but > it seems to be changed in Rails 3. > > The url http://ab.cd/ef?g=1&h=2 seems to be now translated to > http://ab.cd/ef?g=1&h=2 even if the message is plain text. > > Is it correct? I''ve written my tests previously considering it should not be > encoded in plain text messages and these tests are failing when I''m trying > to upgrade my application to Rails 3...This seems to be a side effect of the unification in view code between ActionView and ActionMailer. Could you open a lighthouse ticket about this please.> Thanks in advance, > > Rodrigo. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Core" group. > To post to this group, send email to rubyonrails-core@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-core+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-core?hl=en. > >-- Cheers Koz -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
Rodrigo Rosenfeld Rosas
2010-Jun-14 12:18 UTC
Re: Rails 3, ActionMailer and urls (ampersand encoding)
https://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/4858-actionmailer-is-html-escaping-ampersand-in-urls-in-plain-text-messages Em 13-06-2010 19:47, Michael Koziarski escreveu:>> In Rails 2, if I used an url in a plain text message it was sent as is, but >> it seems to be changed in Rails 3. >> >> The url http://ab.cd/ef?g=1&h=2 seems to be now translated to >> http://ab.cd/ef?g=1&h=2 even if the message is plain text. >> >> Is it correct? I''ve written my tests previously considering it should not be >> encoded in plain text messages and these tests are failing when I''m trying >> to upgrade my application to Rails 3... >> > This seems to be a side effect of the unification in view code between > ActionView and ActionMailer. Could you open a lighthouse ticket about > this please. > > > >> Thanks in advance, >> >> Rodrigo. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Core" group. >> To post to this group, send email to rubyonrails-core@googlegroups.com. >> To unsubscribe from this group, send email to >> rubyonrails-core+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/rubyonrails-core?hl=en. >> >> >> > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.