]> git.openstreetmap.org Git - rails.git/commitdiff
Quote the from address explicitly as rails seems to be failing to do
authorTom Hughes <tom@compton.nu>
Fri, 6 Nov 2009 16:03:19 +0000 (16:03 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 6 Nov 2009 16:03:19 +0000 (16:03 +0000)
it, though it looks like it should from a quick glance at the source.

app/models/notifier.rb

index 6ba90ce58954b0096cc621ba260bb80e0f86a4ce..7fc276042c54817aec620fdd6ad47efe5c2457f4 100644 (file)
@@ -112,7 +112,7 @@ private
 
   def from_header(name, type, id, digest)
     if domain = APP_CONFIG['messages_domain']
-      from "#{name} <#{type}-#{id}-#{digest[0,6]}@#{domain}>"
+      from quote_address_if_necessary("#{name} <#{type}-#{id}-#{digest[0,6]}@#{domain}>", "utf-8")
     end
   end
 end