[wp-meta] [Making WordPress.org] #5587: Skip sanitization of code snippets in forum replies email notifications

Making WordPress.org noreply at wordpress.org
Wed Jan 27 01:15:50 UTC 2021


#5587: Skip sanitization of code snippets in forum replies email notifications
----------------------------+--------------------
 Reporter:  YordanSoares    |      Owner:  (none)
     Type:  defect          |     Status:  new
 Priority:  normal          |  Milestone:
Component:  Support Forums  |   Keywords:
----------------------------+--------------------
 I replied to [https://wordpress.org/support/topic/contact-form-7-data-not-
 showing-data/#post-13884276/ this user] in the support forum, but she used
 the code that received in her inbox.

 I have noticed that when we use {{{<code>}}} tags to display raw code, the
 message arrive to inbox with the {{{<}}} and {{{<}}} characters converted
 into HTML entities.

 [[Image(https://i.imgur.com/yAs3GrB.png)]]
 ''Example of a code snippet in a forum reply...''

 The problem I see here is that if the user uses this code from the email
 instead the one in the forum reply, it will not work. As you can see in
 the below replies, she entered the forum through a video I recorded and
 realized that the code was different from what she received in the email
 notification.

 [[Image(https://i.imgur.com/5pO6Ev4.png)]]
 ''...code delivered to the user inbox''

 My proposal is to add an exception to the parsing performed to the
 messages before sending the mail so that it skip the sanitization in the
 code enclosed in {{{<code>}}} tags including, of course, the {{{<code>}}}
 tags in order to display as a code snippet in the mail message.

-- 
Ticket URL: <https://meta.trac.wordpress.org/ticket/5587>
Making WordPress.org <https://meta.trac.wordpress.org/>
Making WordPress.org


More information about the wp-meta mailing list