[OpenStreetMap] #4118: Wrong encoding of certain characters in private messages forwarded to mail

OpenStreetMap trac at openstreetmap.org
Sat Dec 3 12:07:18 GMT 2011


#4118: Wrong encoding of certain characters in private messages forwarded to mail
------------------------------+---------------------------------------------
  Reporter:  Kurt Krampmeier  |       Owner:  rails-dev@…                
      Type:  defect           |      Status:  reopened                   
  Priority:  major            |   Milestone:                             
 Component:  website          |     Version:                             
Resolution:                   |    Keywords:                             
------------------------------+---------------------------------------------
Changes (by Kurt Krampmeier):

  * status:  closed => reopened
  * resolution:  fixed =>


Comment:

 Right, HTML is not allowed in the subject (and hopefully user names). But
 since the given characters are still allowed in the subject (and maybe in
 user names) as normal characters without special meaning, they need to be
 escaped when displayed on the website. This is right. But they currently
 are also escaped in the plaintext part of the mail. This is wrong. It has
 nothing to do with HTML being allowed or not. Just send yourself a message
 with a subject like '" & < >' and check the plaintext part of the received
 mail. It will read "[...] has sent you a message through OpenStreetMap
 with the subject " & < >:"

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/4118#comment:4>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list